[vlc-commits] Win32: use DWORD_PTR instead of DWORD for callback declaration

Jean-Baptiste Kempf git at videolan.org
Mon Sep 26 02:54:30 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 26 02:54:05 2011 +0200| [89c0d24f5cb063b5e6cd1d4e4ae15e2057e4c719] | committer: Jean-Baptiste Kempf

Win32: use DWORD_PTR instead of DWORD for callback declaration

This should help on Win64

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89c0d24f5cb063b5e6cd1d4e4ae15e2057e4c719
---

 modules/audio_output/waveout.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/audio_output/waveout.c b/modules/audio_output/waveout.c
index fc0b8e4..4f36500 100644
--- a/modules/audio_output/waveout.c
+++ b/modules/audio_output/waveout.c
@@ -60,7 +60,7 @@ static int OpenWaveOutPCM( audio_output_t *, uint32_t,
 static int PlayWaveOut   ( audio_output_t *, HWAVEOUT, WAVEHDR *,
                            aout_buffer_t *, bool );
 
-static void CALLBACK WaveOutCallback ( HWAVEOUT, UINT, DWORD, DWORD, DWORD );
+static void CALLBACK WaveOutCallback ( HWAVEOUT, UINT, DWORD_PTR, DWORD_PTR, DWORD_PTR );
 static void* WaveOutThread( void * );
 
 static int VolumeSet( audio_output_t *, float, bool );
@@ -802,8 +802,8 @@ static int PlayWaveOut( audio_output_t *p_aout, HWAVEOUT h_waveout,
  * WaveOutCallback: what to do once WaveOut has played its sound samples
  *****************************************************************************/
 static void CALLBACK WaveOutCallback( HWAVEOUT h_waveout, UINT uMsg,
-                                      DWORD _p_aout,
-                                      DWORD dwParam1, DWORD dwParam2 )
+                                      DWORD_PTR _p_aout,
+                                      DWORD_PTR dwParam1, DWORD_PTR dwParam2 )
 {
     (void)h_waveout;    (void)dwParam1;    (void)dwParam2;
     audio_output_t *p_aout = (audio_output_t *)_p_aout;



More information about the vlc-commits mailing list