dsound: Fix stupid mistake

Maarten Lankhorst m.b.lankhorst at gmail.com
Sun May 27 09:13:27 CDT 2007


-------------- next part --------------
>From c0cdd6e46c8e23f98fdc99a0fb4715c9e4a74821 Mon Sep 17 00:00:00 2001
From: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Sat, 26 May 2007 19:13:25 +0200
Subject: [PATCH] dsound: Fix stupid mistake

---
diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index 83819a4..d4ade48 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -397,7 +398,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;
 		}
-- 
1.4.4.2



More information about the wine-patches mailing list