Module: wine Branch: master Commit: 6f84708902f49f6376d26e9f7f632f5742d87c74 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f84708902f49f6376d26e9f7f...
Author: Maarten Lankhorst m.b.lankhorst@gmail.com Date: Tue Oct 16 14:06:25 2012 +0200
winmm: Do not blindly reset device when already stopped.
---
dlls/winmm/waveform.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index 73f7a04..9bcabe2 100644 --- a/dlls/winmm/waveform.c +++ b/dlls/winmm/waveform.c @@ -1398,6 +1398,8 @@ static void WOD_PushData(WINMM_Device *device) goto exit;
if(!device->first){ + if (device->stopped) + goto exit; device->stopped = TRUE; device->last_clock_pos = 0; IAudioClient_Stop(device->client);