Nikolay Sivov : comctl32/updown: Fix some test failures on Win95 ( comctl32 4.0).
Alexandre Julliard
julliard at winehq.org
Tue Sep 29 11:09:10 CDT 2009
Module: wine
Branch: master
Commit: 484ef1dcbf7dd2f5bb4cd55080eec80596853200
URL: http://source.winehq.org/git/wine.git/?a=commit;h=484ef1dcbf7dd2f5bb4cd55080eec80596853200
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Tue Sep 29 01:56:37 2009 +0400
comctl32/updown: Fix some test failures on Win95 (comctl32 4.0).
---
dlls/comctl32/tests/updown.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/updown.c b/dlls/comctl32/tests/updown.c
index 8797b9f..253e959 100644
--- a/dlls/comctl32/tests/updown.c
+++ b/dlls/comctl32/tests/updown.c
@@ -393,7 +393,15 @@ static void test_updown_pos32(void)
/* Set the position to 0 to 1000 */
SendMessage(updown, UDM_SETRANGE32, 0 , 1000 );
+ low = high = -1;
r = SendMessage(updown, UDM_GETRANGE32, (WPARAM) &low , (LPARAM) &high );
+ if (low == -1)
+ {
+ win_skip("UDM_SETRANGE32/UDM_GETRANGE32 not available\n");
+ DestroyWindow(updown);
+ return;
+ }
+
expect(0,low);
expect(1000,high);
@@ -402,6 +410,7 @@ static void test_updown_pos32(void)
if (!r)
{
win_skip("UDM_SETPOS32 and UDM_GETPOS32 need 5.80\n");
+ DestroyWindow(updown);
return;
}
expect(50,r);
@@ -548,6 +557,12 @@ static void test_updown_unicode(void)
r = SendMessage(updown, UDM_SETUNICODEFORMAT, 1 , 0);
expect(0,r);
r = SendMessage(updown, UDM_GETUNICODEFORMAT, 0 , 0);
+ if (!r)
+ {
+ win_skip("UDM_SETUNICODEFORMAT not available\n");
+ DestroyWindow(updown);
+ return;
+ }
expect(1,r);
/* And now set it back to ANSI */
More information about the wine-cvs
mailing list