[PATCH] Don't crash on NT4
Paul Vriens
Paul.Vriens.Wine at gmail.com
Thu Oct 9 04:59:42 CDT 2008
---
dlls/user32/tests/text.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/dlls/user32/tests/text.c b/dlls/user32/tests/text.c
index 7627280..5523ff2 100644
--- a/dlls/user32/tests/text.c
+++ b/dlls/user32/tests/text.c
@@ -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),
--
1.5.4.3
--------------080007050608060608080000--
More information about the wine-patches
mailing list