Rémi Bernon : dmusic: Avoid passing invalid handle to IDirectMusicSynth_Unload.
Module: wine Branch: master Commit: 82436b1ee8f7b893b91c7cc6c276a47bba1ee25f URL: https://gitlab.winehq.org/wine/wine/-/commit/82436b1ee8f7b893b91c7cc6c276a47... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Mon Sep 4 11:38:09 2023 +0200 dmusic: Avoid passing invalid handle to IDirectMusicSynth_Unload. --- dlls/dmusic/port.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/dmusic/port.c b/dlls/dmusic/port.c index 94ab970ae76..95a02704a5f 100644 --- a/dlls/dmusic/port.c +++ b/dlls/dmusic/port.c @@ -707,6 +707,7 @@ static HRESULT WINAPI synth_port_download_Unload(IDirectMusicPortDownload *iface } } + if (!handle) return S_OK; return IDirectMusicSynth_Unload(This->synth, handle, NULL, NULL); }
participants (1)
-
Alexandre Julliard