Alexandre Julliard : comctl32/tests: Use UDM_GET/SETPOS instead of UDM_GET/ SETPOS32 for compatibility with old versions.

Alexandre Julliard julliard at winehq.org
Fri Sep 25 10:25:16 CDT 2009


Module: wine
Branch: master
Commit: d0aaae9987342fd75bd7ee742626227c9d0a9a48
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d0aaae9987342fd75bd7ee742626227c9d0a9a48

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Sep 25 15:13:55 2009 +0200

comctl32/tests: Use UDM_GET/SETPOS instead of UDM_GET/SETPOS32 for compatibility with old versions.

---

 dlls/comctl32/tests/updown.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/dlls/comctl32/tests/updown.c b/dlls/comctl32/tests/updown.c
index 104d3c8..8797b9f 100644
--- a/dlls/comctl32/tests/updown.c
+++ b/dlls/comctl32/tests/updown.c
@@ -513,7 +513,7 @@ static void test_updown_base(void)
     /* switch base with buddy attached */
     updown = create_updown_control(UDS_SETBUDDYINT);
 
-    r = SendMessage(updown, UDM_SETPOS32, 0, 10);
+    r = SendMessage(updown, UDM_SETPOS, 0, 10);
     expect(50, r);
 
     GetWindowTextA(edit, text, sizeof(text)/sizeof(CHAR));
@@ -587,7 +587,6 @@ static void test_UDS_SETBUDDYINT(void)
     HWND updown;
     DWORD style, ret;
     CHAR text[10];
-    BOOL b;
 
     /* cleanup buddy */
     text[0] = '\0';
@@ -619,7 +618,7 @@ static void test_UDS_SETBUDDYINT(void)
     /* set edit text directly, check position */
     strcpy(text, "10");
     SetWindowTextA(edit, text);
-    ret = SendMessageA(updown, UDM_GETPOS32, 0, 0);
+    ret = SendMessageA(updown, UDM_GETPOS, 0, 0);
     expect(10, ret);
     strcpy(text, "11");
     SetWindowTextA(edit, text);
@@ -629,10 +628,9 @@ static void test_UDS_SETBUDDYINT(void)
     /* set to invalid value */
     strcpy(text, "21st");
     SetWindowTextA(edit, text);
-    b = FALSE;
-    ret = SendMessageA(updown, UDM_GETPOS32, 0, (LPARAM)&b);
-    expect(11, ret);
-    expect(TRUE, b);
+    ret = SendMessageA(updown, UDM_GETPOS, 0, 0);
+    expect(11, LOWORD(ret));
+    expect(TRUE, HIWORD(ret));
     /* set style back */
     style = GetWindowLongA(updown, GWL_STYLE);
     SetWindowLongA(updown, GWL_STYLE, style | UDS_SETBUDDYINT);




More information about the wine-cvs mailing list