Maarten Lankhorst : dsound: Return primary_done when no mixing needs to be done instead of 0.

Alexandre Julliard julliard at winehq.org
Mon Nov 12 06:27:48 CST 2007


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

Author: Maarten Lankhorst <maarten at codeweavers.com>
Date:   Sat Nov 10 20:15:21 2007 +0100

dsound: Return primary_done when no mixing needs to be done instead of 0.

---

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

diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c
index 6598b03..7c570bc 100644
--- a/dlls/dsound/mixer.c
+++ b/dlls/dsound/mixer.c
@@ -590,7 +590,7 @@ static DWORD DSOUND_MixOne(IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD mi
 	TRACE("primary_done=%d, mixlen (primary) = %i\n", primary_done, mixlen);
 
 	if (!mixlen)
-		return 0;
+		return primary_done;
 
 	/* First try to mix to the end of the buffer if possible
 	 * Theoretically it would allow for better optimization




More information about the wine-cvs mailing list