Module: wine Branch: master Commit: 4ac4401c418403581bf001b6fefa9b098e7e5119 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ac4401c418403581bf001b6fe...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Thu Oct 9 11:59:42 2008 +0200
user32/tests: Don't crash on NT4.
---
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),