Commit 3d302041 authored by Alexandre Julliard's avatar Alexandre Julliard

dsound: Fix a compiler warning.

parent 0d00a74f
...@@ -229,7 +229,8 @@ HRESULT DSOUND_PrimaryCreate(DirectSoundDevice *device) ...@@ -229,7 +229,8 @@ HRESULT DSOUND_PrimaryCreate(DirectSoundDevice *device)
device->drvdesc.dwFlags = DSDDESC_DOMMSYSTEMOPEN | DSDDESC_DOMMSYSTEMSETFORMAT; device->drvdesc.dwFlags = DSDDESC_DOMMSYSTEMOPEN | DSDDESC_DOMMSYSTEMSETFORMAT;
waveOutClose(device->hwo); waveOutClose(device->hwo);
IDsDriver_Release(device->driver); IDsDriver_Release(device->driver);
device->driver = device->buffer = NULL; device->driver = NULL;
device->buffer = NULL;
device->hwo = 0; device->hwo = 0;
err = mmErr(waveOutOpen(&(device->hwo), device->drvdesc.dnDevNode, device->pwfx, (DWORD_PTR)DSOUND_callback, (DWORD)device, CALLBACK_FUNCTION)); err = mmErr(waveOutOpen(&(device->hwo), device->drvdesc.dnDevNode, device->pwfx, (DWORD_PTR)DSOUND_callback, (DWORD)device, CALLBACK_FUNCTION));
if (err != DS_OK) if (err != DS_OK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment