Alexandre Julliard : dsound: Fix an invalid pointer cast.

Alexandre Julliard julliard at winehq.org
Thu Dec 31 07:42:42 CST 2009


Module: wine
Branch: master
Commit: 5da782ac539ff5488ea6247ea893a722b4cbafcf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5da782ac539ff5488ea6247ea893a722b4cbafcf

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Dec 30 21:24:35 2009 +0100

dsound: Fix an invalid pointer cast.

---

 dlls/dsound/primary.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index 30a8968..8a054f8 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -130,7 +130,7 @@ HRESULT DSOUND_ReopenDevice(DirectSoundDevice *device, BOOL forcewave)
 		if (device->driver)
 			flags |= WAVE_DIRECTSOUND;
 
-		hres = mmErr(waveOutOpen(&(device->hwo), device->drvdesc.dnDevNode, device->pwfx, (DWORD_PTR)DSOUND_callback, (DWORD)device, flags));
+		hres = mmErr(waveOutOpen(&(device->hwo), device->drvdesc.dnDevNode, device->pwfx, (DWORD_PTR)DSOUND_callback, (DWORD_PTR)device, flags));
 		if (FAILED(hres)) {
 			WARN("waveOutOpen failed\n");
 			if (device->driver)




More information about the wine-cvs mailing list