Commit 6ad988eb authored by Patrik Stridvall's avatar Patrik Stridvall Committed by Alexandre Julliard

Fixed some warnings.

parent 5bc9a0b6
......@@ -949,7 +949,7 @@ static HRESULT OLEClipbrd_RenderFormat(IDataObject *pIDataObject, LPFORMATETC pF
if (!FAILED(hr = IDataObject_GetData(theOleClipboard->pIDataObjectSrc, &fmt2, &std2)))
{
mfp = (METAFILEPICT *)GlobalLock(std2.u.hMetaFilePict);
mfp = (METAFILEPICT *)GlobalLock(std2.u.hGlobal);
}
if (mfp)
......@@ -992,7 +992,7 @@ static HRESULT OLEClipbrd_RenderFormat(IDataObject *pIDataObject, LPFORMATETC pF
HeapFree(GetProcessHeap(), 0, mfBits);
GlobalUnlock(std2.u.hMetaFilePict);
GlobalUnlock(std2.u.hGlobal);
ReadClassStg(std.u.pstg, &clsID);
ProgIDFromCLSID(&clsID, &strProgID);
......
......@@ -1547,10 +1547,10 @@ void WINAPI ReleaseStgMedium(
if ( (pmedium->pUnkForRelease==0) &&
(pmedium->u.hMetaFilePict!=0) )
{
LPMETAFILEPICT pMP = GlobalLock(pmedium->u.hMetaFilePict);
LPMETAFILEPICT pMP = GlobalLock(pmedium->u.hGlobal);
DeleteMetaFile(pMP->hMF);
GlobalUnlock(pmedium->u.hMetaFilePict);
GlobalFree(pmedium->u.hMetaFilePict);
GlobalUnlock(pmedium->u.hGlobal);
GlobalFree(pmedium->u.hGlobal);
}
pmedium->u.hMetaFilePict = 0;
......
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