summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-23 12:13:58 +0000
committertron <tron@openttd.org>2005-09-23 12:13:58 +0000
commit7ee0b8ac86604c34f299256a6b33b1e3e1ebbc6e (patch)
tree7d9ec4def0f1e3183d78158d7e304e67a5d222ff
parent9c2700b14ca96b76a357ee27ae1abbc2a3736658 (diff)
downloadopenttd-7ee0b8ac86604c34f299256a6b33b1e3e1ebbc6e.tar.xz
(svn r2975) Use the correct types, not types which accidently have the same size on 32bit machines
-rw-r--r--sound/win32_s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/win32_s.c b/sound/win32_s.c
index b32c2e746..22c1b9468 100644
--- a/sound/win32_s.c
+++ b/sound/win32_s.c
@@ -36,7 +36,7 @@ static void FillHeaders(void)
}
}
-static void CALLBACK waveOutProc(HWAVEOUT hwo, UINT uMsg, DWORD dwInstance,
+static void CALLBACK waveOutProc(HWAVEOUT hwo, UINT uMsg, DWORD_PTR dwInstance,
DWORD dwParam1, DWORD dwParam2)
{
switch (uMsg) {
@@ -62,7 +62,7 @@ static const char *Win32SoundStart(const char* const* parm)
wfex.nAvgBytesPerSec = hz * 2 * 2;
wfex.nBlockAlign = 4;
wfex.wBitsPerSample = 16;
- if (waveOutOpen(&_waveout, WAVE_MAPPER, &wfex, (DWORD)&waveOutProc, 0, CALLBACK_FUNCTION) != MMSYSERR_NOERROR)
+ if (waveOutOpen(&_waveout, WAVE_MAPPER, &wfex, (DWORD_PTR)&waveOutProc, 0, CALLBACK_FUNCTION) != MMSYSERR_NOERROR)
return "waveOutOpen failed";
PrepareHeader(&_wave_hdr[0]);
PrepareHeader(&_wave_hdr[1]);