mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
Fix ReleaseStgMedium for MetaFilePict types.
This commit is contained in:
parent
a83c7c5320
commit
a3fca2a933
@ -1462,7 +1462,9 @@ void WINAPI ReleaseStgMedium(
|
||||
if ( (pmedium->pUnkForRelease==0) &&
|
||||
(pmedium->u.hMetaFilePict!=0) )
|
||||
{
|
||||
DeleteMetaFile(pmedium->u.hMetaFilePict);
|
||||
LPMETAFILEPICT pMP = GlobalLock(pmedium->u.hMetaFilePict);
|
||||
DeleteMetaFile(pMP->hMF);
|
||||
GlobalUnlock(pmedium->u.hMetaFilePict);
|
||||
GlobalFree(pmedium->u.hMetaFilePict);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user