Fix ReleaseStgMedium for MetaFilePict types.

This commit is contained in:
Huw D M Davies 2001-02-12 01:22:01 +00:00 committed by Alexandre Julliard
parent a83c7c5320
commit a3fca2a933

View File

@ -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);
}