dmsynth: Fix a module refcounting regression.

Fixes a regression introduced by 165f8d1fff.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-07-16 17:31:16 +02:00 committed by Alexandre Julliard
parent 911e59c133
commit a1ee6fa8dd
1 changed files with 1 additions and 0 deletions

View File

@ -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);