dsound: Respect return value of callback in DirectSoundEnumerateA/W.

Sebastian Lackner sebastian at fds-team.de
Mon Jan 16 07:55:46 CST 2017


From: Michael Müller <michael at fds-team.de>

Fixes a regression introduced in c8c6cc97bcaab5441ea200041bb7cc99c4ba01fb.

Signed-off-by: Michael Müller <michael at fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

Fixes: https://bugs.winehq.org/show_bug.cgi?id=42163

 dlls/dsound/dsound_main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c
index 112ce78d4a2..796fe1e5261 100644
--- a/dlls/dsound/dsound_main.c
+++ b/dlls/dsound/dsound_main.c
@@ -510,7 +510,7 @@ HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids,
         }
 
         if(device != defdev){
-            send_device(device, &guids[n], cb, user);
+            keep_going = send_device(device, &guids[n], cb, user);
             ++n;
         }
 
-- 
2.11.0



More information about the wine-patches mailing list