Commit 7e8a9e3d authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winmm: Fix the mmTask*() prototypes.

parent 2264b0c5
...@@ -2817,7 +2817,7 @@ static DWORD WINAPI mmTaskRun(void* pmt) ...@@ -2817,7 +2817,7 @@ static DWORD WINAPI mmTaskRun(void* pmt)
/****************************************************************** /******************************************************************
* mmTaskCreate (WINMM.@) * mmTaskCreate (WINMM.@)
*/ */
MMRESULT WINAPI mmTaskCreate(LPTASKCALLBACK cb, HANDLE* ph, DWORD client) UINT WINAPI mmTaskCreate(LPTASKCALLBACK cb, HANDLE* ph, DWORD_PTR client)
{ {
HANDLE hThread; HANDLE hThread;
HANDLE hEvent = 0; HANDLE hEvent = 0;
...@@ -2846,7 +2846,7 @@ MMRESULT WINAPI mmTaskCreate(LPTASKCALLBACK cb, HANDLE* ph, DWORD client) ...@@ -2846,7 +2846,7 @@ MMRESULT WINAPI mmTaskCreate(LPTASKCALLBACK cb, HANDLE* ph, DWORD client)
/****************************************************************** /******************************************************************
* mmTaskBlock (WINMM.@) * mmTaskBlock (WINMM.@)
*/ */
void WINAPI mmTaskBlock(HANDLE tid) VOID WINAPI mmTaskBlock(DWORD tid)
{ {
MSG msg; MSG msg;
...@@ -2860,20 +2860,20 @@ void WINAPI mmTaskBlock(HANDLE tid) ...@@ -2860,20 +2860,20 @@ void WINAPI mmTaskBlock(HANDLE tid)
/****************************************************************** /******************************************************************
* mmTaskSignal (WINMM.@) * mmTaskSignal (WINMM.@)
*/ */
BOOL WINAPI mmTaskSignal(HANDLE tid) BOOL WINAPI mmTaskSignal(DWORD tid)
{ {
return PostThreadMessageW((DWORD)tid, WM_USER, 0, 0); return PostThreadMessageW(tid, WM_USER, 0, 0);
} }
/****************************************************************** /******************************************************************
* mmTaskYield (WINMM.@) * mmTaskYield (WINMM.@)
*/ */
void WINAPI mmTaskYield(void) {} VOID WINAPI mmTaskYield(VOID) {}
/****************************************************************** /******************************************************************
* mmGetCurrentTask (WINMM.@) * mmGetCurrentTask (WINMM.@)
*/ */
HANDLE WINAPI mmGetCurrentTask(void) DWORD WINAPI mmGetCurrentTask(VOID)
{ {
return (HANDLE)GetCurrentThreadId(); return GetCurrentThreadId();
} }
...@@ -453,15 +453,15 @@ BOOL WINAPI mciFreeCommandResource(UINT uTable); ...@@ -453,15 +453,15 @@ BOOL WINAPI mciFreeCommandResource(UINT uTable);
BOOL WINAPI DriverCallback(DWORD_PTR dwCallBack, DWORD uFlags, HDRVR hDev, BOOL WINAPI DriverCallback(DWORD_PTR dwCallBack, DWORD uFlags, HDRVR hDev,
DWORD wMsg, DWORD_PTR dwUser, DWORD_PTR dwParam1, DWORD_PTR dwParam2); DWORD wMsg, DWORD_PTR dwUser, DWORD_PTR dwParam1, DWORD_PTR dwParam2);
typedef void (*LPTASKCALLBACK)(DWORD dwInst); typedef VOID (*LPTASKCALLBACK)(DWORD dwInst);
#define TASKERR_NOTASKSUPPORT 1 #define TASKERR_NOTASKSUPPORT 1
#define TASKERR_OUTOFMEMORY 2 #define TASKERR_OUTOFMEMORY 2
MMRESULT WINAPI mmTaskCreate(LPTASKCALLBACK, HANDLE*, DWORD); UINT WINAPI mmTaskCreate(LPTASKCALLBACK, HANDLE*, DWORD_PTR);
void WINAPI mmTaskBlock(HANDLE); VOID WINAPI mmTaskBlock(DWORD);
BOOL WINAPI mmTaskSignal(HANDLE); BOOL WINAPI mmTaskSignal(DWORD);
void WINAPI mmTaskYield(void); VOID WINAPI mmTaskYield(VOID);
HANDLE WINAPI mmGetCurrentTask(void); DWORD WINAPI mmGetCurrentTask(VOID);
#ifdef __WINESRC__ #ifdef __WINESRC__
#define WAVE_DIRECTSOUND 0x0080 #define WAVE_DIRECTSOUND 0x0080
......
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