Alexandre Julliard : dsound: Fix a compiler warning.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Aug 21 07:20:56 CDT 2007


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Aug 21 12:43:15 2007 +0200

dsound: Fix a compiler warning.

---

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

diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index 4063266..ac1a17e 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -229,7 +229,8 @@ HRESULT DSOUND_PrimaryCreate(DirectSoundDevice *device)
 			device->drvdesc.dwFlags = DSDDESC_DOMMSYSTEMOPEN | DSDDESC_DOMMSYSTEMSETFORMAT;
 			waveOutClose(device->hwo);
 			IDsDriver_Release(device->driver);
-			device->driver = device->buffer = NULL;
+                        device->driver = NULL;
+                        device->buffer = NULL;
 			device->hwo = 0;
 			err = mmErr(waveOutOpen(&(device->hwo), device->drvdesc.dnDevNode, device->pwfx, (DWORD_PTR)DSOUND_callback, (DWORD)device, CALLBACK_FUNCTION));
 			if (err != DS_OK)




More information about the wine-cvs mailing list