From 8de6c8b4a97389475a36b494bca037ac1c596ef9 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Sat, 10 Nov 2007 20:15:21 +0100 Subject: [PATCH] dsound: Return primary_done when no mixing needs to be done instead of 0. --- dlls/dsound/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c index 6598b03e381..7c570bc9dcf 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 -- 2.11.4.GIT