user32/tests: Don't crash on NT4.

This commit is contained in:
Paul Vriens 2008-10-09 11:59:42 +02:00 committed by Alexandre Julliard
parent b7787ec0c8
commit 4ac4401c41
1 changed files with 8 additions and 5 deletions

View File

@ -139,11 +139,14 @@ static void test_DrawTextCalcRect(void)
ok( (rect.left == rect.right && rect.bottom == rect.top),
"rectangle should be empty got %d,%d-%d,%d\n",
rect.left, rect.top, rect.right, rect.bottom );
SetRect( &rect, 10,10, 100, 100);
textheight = DrawTextExW(hdc, NULL, -1, &rect, DT_CALCRECT, NULL );
ok( !(rect.left == rect.right && rect.bottom == rect.top),
"rectangle should NOT be empty got %d,%d-%d,%d\n",
rect.left, rect.top, rect.right, rect.bottom );
if (0) {
SetRect( &rect, 10,10, 100, 100);
/* Crashes on NT4 */
textheight = DrawTextExW(hdc, NULL, -1, &rect, DT_CALCRECT, NULL );
ok( !(rect.left == rect.right && rect.bottom == rect.top),
"rectangle should NOT be empty got %d,%d-%d,%d\n",
rect.left, rect.top, rect.right, rect.bottom );
}
SetRect( &rect, 10,10, 100, 100);
textheight = DrawTextExW(hdc, NULL, 0, &rect, DT_CALCRECT, NULL );
ok( !(rect.left == rect.right && rect.bottom == rect.top),