Commit a3fca2a9 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Fix ReleaseStgMedium for MetaFilePict types.

parent a83c7c53
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment