Dmitry Timoshkov : user32/tests: Fix scroll tests compilation with __WINESRC__ defined.

Alexandre Julliard julliard at winehq.org
Thu Oct 24 13:18:55 CDT 2013


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Oct 23 14:54:09 2013 +0900

user32/tests: Fix scroll tests compilation with __WINESRC__ defined.

---

 dlls/user32/tests/scroll.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/tests/scroll.c b/dlls/user32/tests/scroll.c
index 0f0ede2..df37534 100644
--- a/dlls/user32/tests/scroll.c
+++ b/dlls/user32/tests/scroll.c
@@ -56,7 +56,7 @@ static void scrollbar_test_track(void)
 {
     /* test that scrollbar tracking is terminated when
      * the control looses mouse capture */
-    SendMessage( hScroll, WM_LBUTTONDOWN, 0, MAKELPARAM( 1, 1));
+    SendMessageA( hScroll, WM_LBUTTONDOWN, 0, MAKELPARAM( 1, 1));
     /* a normal return from the sendmessage */
     /* not normal for instance by closing the windws */
     ok( IsWindow( hScroll), "Scrollbar has gone!\n");
@@ -467,7 +467,7 @@ static void scrollbar_test_init(void)
     wc.cbSize        = sizeof wc;
     wc.style         = CS_VREDRAW | CS_HREDRAW;
     wc.hInstance     = GetModuleHandleA(0);
-    wc.hCursor       = LoadCursorA(NULL, IDC_ARROW);
+    wc.hCursor       = LoadCursorA(NULL, (LPCSTR)IDC_ARROW);
     wc.hbrBackground = GetStockObject(WHITE_BRUSH);
     wc.lpszClassName = cls_name;
     wc.lpfnWndProc   = scroll_init_proc;
@@ -495,7 +495,7 @@ START_TEST ( scroll )
     wc.cbWndExtra = 0;
     wc.hInstance = GetModuleHandleA(NULL);
     wc.hIcon = NULL;
-    wc.hCursor = LoadCursorA(NULL, IDC_IBEAM);
+    wc.hCursor = LoadCursorA(NULL, (LPCSTR)IDC_IBEAM);
     wc.hbrBackground = GetSysColorBrush(COLOR_WINDOW);
     wc.lpszMenuName = NULL;
     wc.lpszClassName = "MyTestWnd";




More information about the wine-cvs mailing list