Commit 2233f1eb authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

winmm: Some 64-bit pointer fixes.

parent 92dca953
...@@ -273,8 +273,8 @@ LPWINE_MLD MMDRV_Alloc(UINT size, UINT type, LPHANDLE hndl, DWORD* dwFlags, ...@@ -273,8 +273,8 @@ LPWINE_MLD MMDRV_Alloc(UINT size, UINT type, LPHANDLE hndl, DWORD* dwFlags,
if (llTypes[type].Callback) if (llTypes[type].Callback)
{ {
*dwFlags = LOWORD(*dwFlags) | CALLBACK_FUNCTION; *dwFlags = LOWORD(*dwFlags) | CALLBACK_FUNCTION;
*dwCallback = (DWORD)llTypes[type].Callback; *dwCallback = (DWORD_PTR)llTypes[type].Callback;
*dwInstance = (DWORD)mld; /* FIXME: wouldn't some 16 bit drivers only use the loword ? */ *dwInstance = (DWORD_PTR)mld; /* FIXME: wouldn't some 16 bit drivers only use the loword ? */
} }
return mld; return mld;
...@@ -421,12 +421,12 @@ LPWINE_MLD MMDRV_GetRelated(HANDLE hndl, UINT srcType, ...@@ -421,12 +421,12 @@ LPWINE_MLD MMDRV_GetRelated(HANDLE hndl, UINT srcType,
/************************************************************************** /**************************************************************************
* MMDRV_PhysicalFeatures [internal] * MMDRV_PhysicalFeatures [internal]
*/ */
UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg, DWORD dwParam1, UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg,
DWORD dwParam2) DWORD_PTR dwParam1, DWORD_PTR dwParam2)
{ {
WINE_MM_DRIVER* lpDrv = &MMDrvs[mld->mmdIndex]; WINE_MM_DRIVER* lpDrv = &MMDrvs[mld->mmdIndex];
TRACE("(%p, %04x, %08x, %08x)\n", mld, uMsg, dwParam1, dwParam2); TRACE("(%p, %04x, %08lx, %08lx)\n", mld, uMsg, dwParam1, dwParam2);
/* all those function calls are undocumented */ /* all those function calls are undocumented */
switch (uMsg) { switch (uMsg) {
......
...@@ -55,7 +55,7 @@ typedef struct tagWINE_TIMERENTRY { ...@@ -55,7 +55,7 @@ typedef struct tagWINE_TIMERENTRY {
UINT wDelay; UINT wDelay;
UINT wResol; UINT wResol;
LPTIMECALLBACK lpFunc; /* can be lots of things */ LPTIMECALLBACK lpFunc; /* can be lots of things */
DWORD dwUser; DWORD_PTR dwUser;
UINT16 wFlags; UINT16 wFlags;
UINT16 wTimerID; UINT16 wTimerID;
DWORD dwTriggerTime; DWORD dwTriggerTime;
...@@ -170,7 +170,7 @@ static int TIME_MMSysTimeCallback(void) ...@@ -170,7 +170,7 @@ static int TIME_MMSysTimeCallback(void)
break; break;
case TIME_CALLBACK_FUNCTION: case TIME_CALLBACK_FUNCTION:
{ {
DWORD user = timer->dwUser; DWORD_PTR user = timer->dwUser;
UINT16 id = timer->wTimerID; UINT16 id = timer->wTimerID;
UINT16 flags = timer->wFlags; UINT16 flags = timer->wFlags;
LPTIMECALLBACK func = timer->lpFunc; LPTIMECALLBACK func = timer->lpFunc;
...@@ -179,7 +179,7 @@ static int TIME_MMSysTimeCallback(void) ...@@ -179,7 +179,7 @@ static int TIME_MMSysTimeCallback(void)
LeaveCriticalSection(&WINMM_cs); LeaveCriticalSection(&WINMM_cs);
if (flags & WINE_TIMER_IS32) func(id, 0, user, 0, 0); if (flags & WINE_TIMER_IS32) func(id, 0, user, 0, 0);
else if (pFnCallMMDrvFunc16) pFnCallMMDrvFunc16((DWORD)func, id, 0, user, 0, 0); else if (pFnCallMMDrvFunc16) pFnCallMMDrvFunc16((DWORD_PTR)func, id, 0, user, 0, 0);
EnterCriticalSection(&WINMM_cs); EnterCriticalSection(&WINMM_cs);
if (flags & TIME_KILL_SYNCHRONOUS) LeaveCriticalSection(&TIME_cbcrst); if (flags & TIME_KILL_SYNCHRONOUS) LeaveCriticalSection(&TIME_cbcrst);
...@@ -294,14 +294,14 @@ MMRESULT WINAPI timeGetSystemTime(LPMMTIME lpTime, UINT wSize) ...@@ -294,14 +294,14 @@ MMRESULT WINAPI timeGetSystemTime(LPMMTIME lpTime, UINT wSize)
* TIME_SetEventInternal [internal] * TIME_SetEventInternal [internal]
*/ */
WORD TIME_SetEventInternal(UINT wDelay, UINT wResol, WORD TIME_SetEventInternal(UINT wDelay, UINT wResol,
LPTIMECALLBACK lpFunc, DWORD dwUser, UINT wFlags) LPTIMECALLBACK lpFunc, DWORD_PTR dwUser, UINT wFlags)
{ {
WORD wNewID = 0; WORD wNewID = 0;
LPWINE_TIMERENTRY lpNewTimer; LPWINE_TIMERENTRY lpNewTimer;
LPWINE_TIMERENTRY lpTimer; LPWINE_TIMERENTRY lpTimer;
const char c = 'c'; const char c = 'c';
TRACE("(%u, %u, %p, %08X, %04X);\n", wDelay, wResol, lpFunc, dwUser, wFlags); TRACE("(%u, %u, %p, %08lX, %04X);\n", wDelay, wResol, lpFunc, dwUser, wFlags);
if (wDelay < MMSYSTIME_MININTERVAL || wDelay > MMSYSTIME_MAXINTERVAL) if (wDelay < MMSYSTIME_MININTERVAL || wDelay > MMSYSTIME_MAXINTERVAL)
return 0; return 0;
......
...@@ -59,7 +59,7 @@ typedef struct tagWINE_DRIVER ...@@ -59,7 +59,7 @@ typedef struct tagWINE_DRIVER
} WINE_DRIVER, *LPWINE_DRIVER; } WINE_DRIVER, *LPWINE_DRIVER;
typedef DWORD (CALLBACK *WINEMM_msgFunc16)(UINT16, WORD, DWORD, DWORD, DWORD); typedef DWORD (CALLBACK *WINEMM_msgFunc16)(UINT16, WORD, DWORD, DWORD, DWORD);
typedef DWORD (CALLBACK *WINEMM_msgFunc32)(UINT , UINT, DWORD, DWORD, DWORD); typedef DWORD (CALLBACK *WINEMM_msgFunc32)(UINT , UINT, DWORD_PTR, DWORD_PTR, DWORD_PTR);
/* for each loaded driver and each known type of driver, this structure contains /* for each loaded driver and each known type of driver, this structure contains
* the information needed to access it * the information needed to access it
...@@ -196,7 +196,7 @@ DWORD MMDRV_Close(LPWINE_MLD mld, UINT wMsg); ...@@ -196,7 +196,7 @@ DWORD MMDRV_Close(LPWINE_MLD mld, UINT wMsg);
LPWINE_MLD MMDRV_Get(HANDLE hndl, UINT type, BOOL bCanBeID); LPWINE_MLD MMDRV_Get(HANDLE hndl, UINT type, BOOL bCanBeID);
LPWINE_MLD MMDRV_GetRelated(HANDLE hndl, UINT srcType, BOOL bSrcCanBeID, UINT dstTyped); LPWINE_MLD MMDRV_GetRelated(HANDLE hndl, UINT srcType, BOOL bSrcCanBeID, UINT dstTyped);
DWORD MMDRV_Message(LPWINE_MLD mld, UINT wMsg, DWORD_PTR dwParam1, DWORD_PTR dwParam2, BOOL bFrom32); DWORD MMDRV_Message(LPWINE_MLD mld, UINT wMsg, DWORD_PTR dwParam1, DWORD_PTR dwParam2, BOOL bFrom32);
UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg, DWORD dwParam1, DWORD dwParam2); UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg, DWORD_PTR dwParam1, DWORD_PTR dwParam2);
BOOL MMDRV_Is32(unsigned int); BOOL MMDRV_Is32(unsigned int);
void MMDRV_InstallMap(unsigned int, MMDRV_MAPFUNC, MMDRV_UNMAPFUNC, void MMDRV_InstallMap(unsigned int, MMDRV_MAPFUNC, MMDRV_UNMAPFUNC,
MMDRV_MAPFUNC, MMDRV_UNMAPFUNC, LPDRVCALLBACK); MMDRV_MAPFUNC, MMDRV_UNMAPFUNC, LPDRVCALLBACK);
...@@ -240,7 +240,7 @@ LRESULT MMIO_SendMessage(HMMIO hmmio, UINT uMessage, LPARAM lParam1, ...@@ -240,7 +240,7 @@ LRESULT MMIO_SendMessage(HMMIO hmmio, UINT uMessage, LPARAM lParam1,
LPWINE_MMIO MMIO_Get(HMMIO h); LPWINE_MMIO MMIO_Get(HMMIO h);
WORD TIME_SetEventInternal(UINT wDelay, UINT wResol, LPTIMECALLBACK lpFunc, WORD TIME_SetEventInternal(UINT wDelay, UINT wResol, LPTIMECALLBACK lpFunc,
DWORD dwUser, UINT wFlags); DWORD_PTR dwUser, UINT wFlags);
void TIME_MMTimeStop(void); void TIME_MMTimeStop(void);
/* Global variables */ /* Global variables */
......
...@@ -413,8 +413,8 @@ typedef struct tMIXEROPENDESC ...@@ -413,8 +413,8 @@ typedef struct tMIXEROPENDESC
{ {
HMIXEROBJ hmx; HMIXEROBJ hmx;
LPVOID pReserved0; LPVOID pReserved0;
DWORD dwCallback; DWORD_PTR dwCallback;
DWORD dwInstance; DWORD_PTR dwInstance;
} MIXEROPENDESC, *LPMIXEROPENDESC; } MIXEROPENDESC, *LPMIXEROPENDESC;
typedef struct { typedef struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment