mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
[SHELL32] Properly release an StgMedium
This commit is contained in:
parent
0f2cb5abc7
commit
75cabb07be
1 changed files with 2 additions and 2 deletions
|
@ -1369,14 +1369,14 @@ COpenWithMenu::Initialize(PCIDLIST_ABSOLUTE pidlFolder,
|
||||||
{
|
{
|
||||||
TRACE("pidl is not a file\n");
|
TRACE("pidl is not a file\n");
|
||||||
GlobalUnlock(medium.hGlobal);
|
GlobalUnlock(medium.hGlobal);
|
||||||
GlobalFree(medium.hGlobal);
|
ReleaseStgMedium(&medium);
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
pidl = ILCombine(pidlFolder2, pidlChild);
|
pidl = ILCombine(pidlFolder2, pidlChild);
|
||||||
|
|
||||||
GlobalUnlock(medium.hGlobal);
|
GlobalUnlock(medium.hGlobal);
|
||||||
GlobalFree(medium.hGlobal);
|
ReleaseStgMedium(&medium);
|
||||||
|
|
||||||
if (!pidl)
|
if (!pidl)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue