Maarten Lankhorst : dsound: Fix stupid mistake.

Alexandre Julliard julliard at wine.codeweavers.com
Tue May 29 08:05:24 CDT 2007


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

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Sat May 26 19:13:25 2007 +0200

dsound: Fix stupid mistake.

---

 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 83819a4..ad7a5b0 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -397,7 +397,7 @@ HRESULT DSOUND_PrimarySetFormat(DirectSoundDevice *device, LPCWAVEFORMATEX wfex)
 			}
 			if (device->state == STATE_PLAYING) device->state = STATE_STARTING;
 			else if (device->state == STATE_STOPPING) device->state = STATE_STOPPED;
-		} else {
+		} else if (FAILED(err)) {
 			WARN("IDsDriverBuffer_SetFormat failed\n");
 			goto done;
 		}




More information about the wine-cvs mailing list