Module: wine Branch: master Commit: c8e0f5855294b7456a278e37ad18de2c7c4adbc0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c8e0f5855294b7456a278e37ad... Author: Michael Müller <michael(a)fds-team.de> Date: Mon Jan 16 14:55:46 2017 +0100 dsound: Respect return value of callback in DirectSoundEnumerateA/W. Fixes a regression introduced in c8c6cc97bcaab5441ea200041bb7cc99c4ba01fb. Signed-off-by: Michael Müller <michael(a)fds-team.de> Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 112ce78..796fe1e 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; }