Commit 6fa2ac69 authored by Alexandre Julliard's avatar Alexandre Julliard

Removed DECLARE_OLD_HANDLE. Fixed a few remaining warnings.

parent 2c481ceb
...@@ -438,7 +438,7 @@ DWORD MCIAVI_OpenAudio(WINE_MCIAVI* wma, unsigned* nHdr, LPWAVEHDR* pWaveHdr) ...@@ -438,7 +438,7 @@ DWORD MCIAVI_OpenAudio(WINE_MCIAVI* wma, unsigned* nHdr, LPWAVEHDR* pWaveHdr)
LPWAVEHDR waveHdr; LPWAVEHDR waveHdr;
unsigned i; unsigned i;
dwRet = waveOutOpen(&wma->hWave, WAVE_MAPPER, wma->lpWaveFormat, dwRet = waveOutOpen((HWAVEOUT *)&wma->hWave, WAVE_MAPPER, wma->lpWaveFormat,
(DWORD)MCIAVI_waveCallback, (DWORD)wma, CALLBACK_FUNCTION); (DWORD)MCIAVI_waveCallback, (DWORD)wma, CALLBACK_FUNCTION);
if (dwRet != 0) { if (dwRet != 0) {
TRACE("Can't open low level audio device %ld\n", dwRet); TRACE("Can't open low level audio device %ld\n", dwRet);
......
...@@ -775,7 +775,7 @@ static DWORD WAVE_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms) ...@@ -775,7 +775,7 @@ static DWORD WAVE_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
* change from output to input and back * change from output to input and back
*/ */
/* FIXME: how to choose between several output channels ? here mapper is forced */ /* FIXME: how to choose between several output channels ? here mapper is forced */
dwRet = waveOutOpen(&wmw->hWave, WAVE_MAPPER, wmw->lpWaveFormat, dwRet = waveOutOpen((HWAVEOUT *)&wmw->hWave, WAVE_MAPPER, wmw->lpWaveFormat,
(DWORD)WAVE_mciPlayCallback, (DWORD)wmw, CALLBACK_FUNCTION); (DWORD)WAVE_mciPlayCallback, (DWORD)wmw, CALLBACK_FUNCTION);
if (dwRet != 0) { if (dwRet != 0) {
...@@ -1006,7 +1006,7 @@ static DWORD WAVE_mciRecord(UINT wDevID, DWORD dwFlags, LPMCI_RECORD_PARMS lpPar ...@@ -1006,7 +1006,7 @@ static DWORD WAVE_mciRecord(UINT wDevID, DWORD dwFlags, LPMCI_RECORD_PARMS lpPar
* change from output to input and back * change from output to input and back
*/ */
/* FIXME: how to choose between several output channels ? here mapper is forced */ /* FIXME: how to choose between several output channels ? here mapper is forced */
dwRet = waveInOpen(&wmw->hWave, WAVE_MAPPER, wmw->lpWaveFormat, dwRet = waveInOpen((HWAVEIN*)&wmw->hWave, WAVE_MAPPER, wmw->lpWaveFormat,
(DWORD)WAVE_mciRecordCallback, (DWORD)wmw, CALLBACK_FUNCTION); (DWORD)WAVE_mciRecordCallback, (DWORD)wmw, CALLBACK_FUNCTION);
if (dwRet != 0) { if (dwRet != 0) {
......
...@@ -632,7 +632,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD ...@@ -632,7 +632,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD
case WOM_CLOSE: case WOM_CLOSE:
case WOM_DONE: case WOM_DONE:
if (wwo->wFlags != DCB_NULL && if (wwo->wFlags != DCB_NULL &&
!DriverCallback(wwo->waveDesc.dwCallback, wwo->wFlags, wwo->waveDesc.hWave, !DriverCallback(wwo->waveDesc.dwCallback, wwo->wFlags, (HDRVR)wwo->waveDesc.hWave,
wMsg, wwo->waveDesc.dwInstance, dwParam1, dwParam2)) { wMsg, wwo->waveDesc.dwInstance, dwParam1, dwParam2)) {
WARN("can't notify client !\n"); WARN("can't notify client !\n");
return MMSYSERR_ERROR; return MMSYSERR_ERROR;
......
...@@ -456,7 +456,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD ...@@ -456,7 +456,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD
case WOM_CLOSE: case WOM_CLOSE:
case WOM_DONE: case WOM_DONE:
if (wwo->wFlags != DCB_NULL && if (wwo->wFlags != DCB_NULL &&
!DriverCallback(wwo->waveDesc.dwCallback, wwo->wFlags, wwo->waveDesc.hWave, !DriverCallback(wwo->waveDesc.dwCallback, wwo->wFlags, (HDRVR)wwo->waveDesc.hWave,
wMsg, wwo->waveDesc.dwInstance, dwParam1, dwParam2)) { wMsg, wwo->waveDesc.dwInstance, dwParam1, dwParam2)) {
WARN("can't notify client !\n"); WARN("can't notify client !\n");
return MMSYSERR_ERROR; return MMSYSERR_ERROR;
......
...@@ -534,7 +534,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD ...@@ -534,7 +534,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD
case WOM_CLOSE: case WOM_CLOSE:
case WOM_DONE: case WOM_DONE:
if (wwo->wFlags != DCB_NULL && if (wwo->wFlags != DCB_NULL &&
!DriverCallback(wwo->waveDesc.dwCallback, wwo->wFlags, wwo->waveDesc.hWave, !DriverCallback(wwo->waveDesc.dwCallback, wwo->wFlags, (HDRVR)wwo->waveDesc.hWave,
wMsg, wwo->waveDesc.dwInstance, dwParam1, dwParam2)) { wMsg, wwo->waveDesc.dwInstance, dwParam1, dwParam2)) {
WARN("can't notify client !\n"); WARN("can't notify client !\n");
return MMSYSERR_ERROR; return MMSYSERR_ERROR;
......
...@@ -72,24 +72,24 @@ typedef DWORD COLORREF, *LPCOLORREF; ...@@ -72,24 +72,24 @@ typedef DWORD COLORREF, *LPCOLORREF;
typedef int HFILE; typedef int HFILE;
DECLARE_HANDLE(HACCEL); DECLARE_HANDLE(HACCEL);
DECLARE_OLD_HANDLE(HBITMAP); DECLARE_HANDLE(HBITMAP);
DECLARE_OLD_HANDLE(HBRUSH); DECLARE_HANDLE(HBRUSH);
DECLARE_HANDLE(HCOLORSPACE); DECLARE_HANDLE(HCOLORSPACE);
DECLARE_OLD_HANDLE(HDC); DECLARE_HANDLE(HDC);
DECLARE_HANDLE(HDESK); DECLARE_HANDLE(HDESK);
DECLARE_HANDLE(HENHMETAFILE); DECLARE_HANDLE(HENHMETAFILE);
DECLARE_OLD_HANDLE(HFONT); DECLARE_HANDLE(HFONT);
DECLARE_HANDLE(HHOOK); DECLARE_HANDLE(HHOOK);
DECLARE_HANDLE(HICON); DECLARE_HANDLE(HICON);
DECLARE_OLD_HANDLE(HINSTANCE); DECLARE_HANDLE(HINSTANCE);
DECLARE_HANDLE(HKEY); DECLARE_HANDLE(HKEY);
DECLARE_HANDLE(HKL); DECLARE_HANDLE(HKL);
DECLARE_OLD_HANDLE(HMENU); DECLARE_HANDLE(HMENU);
DECLARE_HANDLE(HMETAFILE); DECLARE_HANDLE(HMETAFILE);
DECLARE_HANDLE(HMONITOR); DECLARE_HANDLE(HMONITOR);
DECLARE_HANDLE(HPALETTE); DECLARE_HANDLE(HPALETTE);
DECLARE_OLD_HANDLE(HPEN); DECLARE_HANDLE(HPEN);
DECLARE_OLD_HANDLE(HRGN); DECLARE_HANDLE(HRGN);
DECLARE_HANDLE(HRSRC); DECLARE_HANDLE(HRSRC);
DECLARE_HANDLE(HTASK); DECLARE_HANDLE(HTASK);
DECLARE_HANDLE(HWINEVENTHOOK); DECLARE_HANDLE(HWINEVENTHOOK);
......
...@@ -561,20 +561,14 @@ typedef DWORD EXECUTION_STATE; ...@@ -561,20 +561,14 @@ typedef DWORD EXECUTION_STATE;
* we're ready we'll remove the '!defined(__WINE__)' (the equivalent * we're ready we'll remove the '!defined(__WINE__)' (the equivalent
* of converting it from DECLARE_OLD_HANDLE to DECLARE_HANDLE). * of converting it from DECLARE_OLD_HANDLE to DECLARE_HANDLE).
*/ */
#if defined(STRICT) || (defined(__WINE__) && !defined(WINE_NO_STRICT)) #if defined(__WINE__) && defined(WINE_NO_STRICT)
typedef VOID* HANDLE;
#define DECLARE_OLD_HANDLE(a) \
typedef struct a##__ { int unused; } *a; \
typedef a *P##a
#else
typedef UINT HANDLE; typedef UINT HANDLE;
#define DECLARE_OLD_HANDLE(a) \ #else
typedef HANDLE a; \ typedef void *HANDLE;
typedef a *P##a
#endif #endif
typedef HANDLE *PHANDLE, *LPHANDLE; typedef HANDLE *PHANDLE, *LPHANDLE;
#ifdef STRICT #if defined(STRICT) || (defined(__WINE__) && !defined(WINE_NO_STRICT))
#define DECLARE_HANDLE(a) \ #define DECLARE_HANDLE(a) \
typedef struct a##__ { int unused; } *a; \ typedef struct a##__ { int unused; } *a; \
typedef a *P##a typedef a *P##a
......
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