Module: wine Branch: master Commit: 13fbbfac1c06132575640ede90863c4860f933d1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=13fbbfac1c06132575640ede90...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Aug 24 00:16:07 2016 +0900
winex11: Don't try to free custom GDI formats at all.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/winex11.drv/clipboard.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c index af8fa37..5424c53 100644 --- a/dlls/winex11.drv/clipboard.c +++ b/dlls/winex11.drv/clipboard.c @@ -597,6 +597,7 @@ static void X11DRV_CLIPBOARD_FreeData(LPWINE_CLIPDATA lpData) DeleteEnhMetaFile(lpData->hData); break; default: + if (lpData->wFormatID >= CF_GDIOBJFIRST && lpData->wFormatID <= CF_GDIOBJLAST) break; if (lpData->wFormatID >= CF_PRIVATEFIRST && lpData->wFormatID <= CF_PRIVATELAST) break; GlobalFree(lpData->hData); break;