We are supposed to delete the palette object with the DeleteObject
function.
This commit is contained in:
parent
f4ca35f61c
commit
6623b85893
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue