mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[SHELL32] Properly release an StgMedium
This commit is contained in:
@@ -1369,14 +1369,14 @@ COpenWithMenu::Initialize(PCIDLIST_ABSOLUTE pidlFolder,
|
||||
{
|
||||
TRACE("pidl is not a file\n");
|
||||
GlobalUnlock(medium.hGlobal);
|
||||
GlobalFree(medium.hGlobal);
|
||||
ReleaseStgMedium(&medium);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
pidl = ILCombine(pidlFolder2, pidlChild);
|
||||
|
||||
GlobalUnlock(medium.hGlobal);
|
||||
GlobalFree(medium.hGlobal);
|
||||
ReleaseStgMedium(&medium);
|
||||
|
||||
if (!pidl)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user