Call ReleaseDC() with correct window handle

Dmitry Timoshkov dmitry at baikal.ru
Sat Mar 5 07:14:22 CST 2005


Hello,

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Call ReleaseDC() with correct window handle.

--- cvs/hq/wine/windows/msgbox.c	Tue Dec 14 14:37:52 2004
+++ wine/windows/msgbox.c	Sat Mar 05 13:03:33 2005
@@ -239,7 +239,7 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LP
 
     if (hFont)
 	SelectObject(hdc, hPrevFont);
-    ReleaseDC(hItem, hdc);
+    ReleaseDC(hwnd, hdc);
 
     tiheight = 16 + max(iheight, theight);
     wwidth  = tleft + twidth + ileft + borwidth;






More information about the wine-patches mailing list