Alexandre Julliard : winex11: Don't try to free custom GDI formats at all.
Alexandre Julliard
julliard at winehq.org
Tue Aug 23 11:28:44 CDT 2016
Module: wine
Branch: master
Commit: 13fbbfac1c06132575640ede90863c4860f933d1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=13fbbfac1c06132575640ede90863c4860f933d1
Author: Alexandre Julliard <julliard at 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 at 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;
More information about the wine-cvs
mailing list