[PATCH 1/2] winmm/tests: Fix the parameters of LPTIMECALLBACK
functions.
Michael Stefaniuc
mstefani at redhat.de
Sun Nov 12 14:06:19 CST 2006
---
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());
--
1.4.2.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061112/3cd42e9d/attachment-0001.pgp
More information about the wine-patches
mailing list