dsound: Fix an invalid pointer cast.
This commit is contained in:
parent
dcf1a0c891
commit
5da782ac53
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue