shithub: opus-tools

Download patch

ref: 358e843adc005ef54b163dc12d777bb104a7d860
parent: 3862c100f67934dede95a8e86ca75fa1f1da754a
author: Ricardo Constantino <wiiaboo@gmail.com>
date: Sat Jan 14 13:39:50 EST 2017

opusdec: fix crash with 64-bit VS builds

Fix suggested by mark4o.
Tested with 32 and 64-bit VS2015 and MinGW GCC 6.3.

Signed-off-by: Mark Harris <mark.hsj@gmail.com>

--- a/src/wave_out.c
+++ b/src/wave_out.c
@@ -71,7 +71,7 @@
  */
 
 static void CALLBACK
-wave_callback ( HWAVE hWave, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2 )
+wave_callback ( HWAVE hWave, UINT uMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2 )
 {
         (void) hWave;
         (void) dwInstance;