user32/tests: Don't crash on NT4.
This commit is contained in:
parent
b7787ec0c8
commit
4ac4401c41
|
@ -139,11 +139,14 @@ static void test_DrawTextCalcRect(void)
|
||||||
ok( (rect.left == rect.right && rect.bottom == rect.top),
|
ok( (rect.left == rect.right && rect.bottom == rect.top),
|
||||||
"rectangle should be empty got %d,%d-%d,%d\n",
|
"rectangle should be empty got %d,%d-%d,%d\n",
|
||||||
rect.left, rect.top, rect.right, rect.bottom );
|
rect.left, rect.top, rect.right, rect.bottom );
|
||||||
SetRect( &rect, 10,10, 100, 100);
|
if (0) {
|
||||||
textheight = DrawTextExW(hdc, NULL, -1, &rect, DT_CALCRECT, NULL );
|
SetRect( &rect, 10,10, 100, 100);
|
||||||
ok( !(rect.left == rect.right && rect.bottom == rect.top),
|
/* Crashes on NT4 */
|
||||||
"rectangle should NOT be empty got %d,%d-%d,%d\n",
|
textheight = DrawTextExW(hdc, NULL, -1, &rect, DT_CALCRECT, NULL );
|
||||||
rect.left, rect.top, rect.right, rect.bottom );
|
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);
|
SetRect( &rect, 10,10, 100, 100);
|
||||||
textheight = DrawTextExW(hdc, NULL, 0, &rect, DT_CALCRECT, NULL );
|
textheight = DrawTextExW(hdc, NULL, 0, &rect, DT_CALCRECT, NULL );
|
||||||
ok( !(rect.left == rect.right && rect.bottom == rect.top),
|
ok( !(rect.left == rect.right && rect.bottom == rect.top),
|
||||||
|
|
Loading…
Reference in New Issue