mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- Only call ReleaseStgMedium when IDataObject_GetData has succeeded
- Fixes explorer crashing on context menu click svn path=/trunk/; revision=40822
This commit is contained in:
parent
afed3ea726
commit
9c3502c625
1 changed files with 1 additions and 1 deletions
|
@ -299,10 +299,10 @@ HasClipboardData()
|
|||
if(SUCCEEDED(IDataObject_GetData(pda,&formatetc,&medium)))
|
||||
{
|
||||
ret = TRUE;
|
||||
ReleaseStgMedium(&medium);
|
||||
}
|
||||
|
||||
IDataObject_Release(pda);
|
||||
ReleaseStgMedium(&medium);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue