winex11: Don't try to free custom GDI formats at all.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-08-24 00:16:07 +09:00
parent 99d5b75c7d
commit 13fbbfac1c
1 changed files with 1 additions and 0 deletions

View File

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