dmsynth: Fix a module refcounting regression.

Sebastian Lackner sebastian at fds-team.de
Sat Jul 16 10:31:16 CDT 2016


Fixes a regression introduced by 165f8d1fff39df4d51599bf31008c962d4867cd9.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 dlls/dmsynth/synthsink.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/dmsynth/synthsink.c b/dlls/dmsynth/synthsink.c
index cb397ef..18ef50f 100644
--- a/dlls/dmsynth/synthsink.c
+++ b/dlls/dmsynth/synthsink.c
@@ -291,6 +291,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicSynthSinkImpl(LPCGUID riid, LPVOID* ret_i
         return hr;
     }
 
+    DMSYNTH_LockModule();
     hr = IDirectMusicSynthSink_QueryInterface(&obj->IDirectMusicSynthSink_iface, riid, ret_iface);
     IDirectMusicSynthSink_Release(&obj->IDirectMusicSynthSink_iface);
 
-- 
2.8.0



More information about the wine-patches mailing list