Commit f6a79921 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

winex11: Remove variable size which is not really used from X11DRV_CLIPBOARD_SerializeMetafile.

parent ad714303
......@@ -2411,14 +2411,13 @@ static HANDLE X11DRV_CLIPBOARD_SerializeMetafile(INT wformat, HANDLE hdata, LPDW
h = GlobalAlloc(0, sizeof(METAFILEPICT));
if (h)
{
unsigned int wiresize, size;
unsigned int wiresize;
LPMETAFILEPICT lpmfp = GlobalLock(h);
memcpy(lpmfp, hdata, sizeof(METAFILEPICT));
wiresize = *lpcbytes - sizeof(METAFILEPICT);
lpmfp->hMF = SetMetaFileBitsEx(wiresize,
((const BYTE *)hdata) + sizeof(METAFILEPICT));
size = GetMetaFileBitsEx(lpmfp->hMF, 0, NULL);
GlobalUnlock(h);
}
}
......
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