We are supposed to delete the palette object with the DeleteObject

function.
This commit is contained in:
Ulrich Czekalla 1999-10-23 14:10:04 +00:00 committed by Alexandre Julliard
parent f4ca35f61c
commit 6623b85893
1 changed files with 2 additions and 1 deletions

View File

@ -181,7 +181,8 @@ VOID CALLBACK CLIPBOARD_GlobalFreeProc( HWND hwnd, UINT uMsg, UINT idEvent, DWOR
void CLIPBOARD_DeleteRecord(LPWINE_CLIPFORMAT lpFormat, BOOL bChange)
{
if( (lpFormat->wFormatID >= CF_GDIOBJFIRST &&
lpFormat->wFormatID <= CF_GDIOBJLAST) || lpFormat->wFormatID == CF_BITMAP )
lpFormat->wFormatID <= CF_GDIOBJLAST) || lpFormat->wFormatID == CF_BITMAP
|| lpFormat->wFormatID == CF_PALETTE)
{
if (lpFormat->hData32)
DeleteObject(lpFormat->hData32);