[COMCTL32] syslink: Don't free the return value of WM_CTLCOLORSTATIC. CORE-13605
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 23 Nov 2017 22:15:57 +0000 (00:15 +0200)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 23 Nov 2017 22:15:57 +0000 (00:15 +0200)
-This is a bug in wine and should be sent upstream

dll/win32/comctl32/syslink.c

index 6ba1a0b..675ef62 100644 (file)
@@ -791,7 +791,9 @@ static LRESULT SYSLINK_Draw (const SYSLINK_INFO *infoPtr, HDC hdc)
     }
     else SetBkMode( hdc, TRANSPARENT );
 
+#ifndef __REACTOS__
     DeleteObject(hBrush);
+#endif
 
     LIST_FOR_EACH_ENTRY(Current, &infoPtr->Items, DOC_ITEM, entry)
     {