(svn r2975) Use the correct types, not types which accidently have the same size on 32bit machines
authortron
Fri, 23 Sep 2005 12:13:58 +0000
changeset 2449 bcbfed6d3f58
parent 2448 1a07657c9f9a
child 2450 d7edd1def1e0
(svn r2975) Use the correct types, not types which accidently have the same size on 32bit machines
sound/win32_s.c
--- a/sound/win32_s.c	Fri Sep 23 07:44:03 2005 +0000
+++ b/sound/win32_s.c	Fri Sep 23 12:13:58 2005 +0000
@@ -36,7 +36,7 @@
 	}
 }
 
-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 @@
 	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]);