Michael Stefaniuc : winmm/tests: Fix the parameters of LPTIMECALLBACK functions.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 13 06:29:45 CST 2006


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Nov 12 21:06:19 2006 +0100

winmm/tests: Fix the parameters of LPTIMECALLBACK functions.

---

 dlls/winmm/tests/timer.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/winmm/tests/timer.c b/dlls/winmm/tests/timer.c
index 4b2ebeb..309c3ce 100644
--- a/dlls/winmm/tests/timer.c
+++ b/dlls/winmm/tests/timer.c
@@ -68,7 +68,8 @@ #define NUM_SAMPLES    100
 static DWORD count = 0;
 static DWORD times[NUM_SAMPLES];
 
-static void CALLBACK testTimeProc(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2)
+static void CALLBACK testTimeProc(UINT uID, UINT uMsg, DWORD_PTR dwUser,
+                                  DWORD_PTR dw1, DWORD_PTR dw2)
 {
     if (count < NUM_SAMPLES)
         times[count++] = timeGetTime();
@@ -162,7 +163,8 @@ #define STR(x) case x: return #x
 static int priority = 0;
 static BOOL fired = FALSE;
 
-static void CALLBACK priorityTimeProc(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2)
+static void CALLBACK priorityTimeProc(UINT uID, UINT uMsg, DWORD_PTR dwUser,
+                                      DWORD_PTR dw1, DWORD_PTR dw2)
 {
     priority = GetThreadPriority(GetCurrentThread());
     ok(priority!=THREAD_PRIORITY_ERROR_RETURN, "GetThreadPriority() failed, GetLastError() = %08lx\n", GetLastError());




More information about the wine-cvs mailing list