https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4a843c4e855b6c05c6ea1bc381851f16f899935b

commit 4a843c4e855b6c05c6ea1bc381851f16f899935b
Author: Giannis Adamopoulos <gadamopou...@reactos.org>
AuthorDate: Fri Nov 24 00:15:57 2017 +0200

    [COMCTL32] syslink: Don't free the return value of WM_CTLCOLORSTATIC. 
CORE-13605
    -This is a bug in wine and should be sent upstream
---
 dll/win32/comctl32/syslink.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dll/win32/comctl32/syslink.c b/dll/win32/comctl32/syslink.c
index 6ba1a0b5b1..675ef62422 100644
--- a/dll/win32/comctl32/syslink.c
+++ b/dll/win32/comctl32/syslink.c
@@ -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)
     {

Reply via email to