Call ReleaseDC() with correct window handle.
This commit is contained in:
parent
687679cd90
commit
08b250e74e
windows
|
@ -239,7 +239,7 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
|
|||
|
||||
if (hFont)
|
||||
SelectObject(hdc, hPrevFont);
|
||||
ReleaseDC(hItem, hdc);
|
||||
ReleaseDC(hwnd, hdc);
|
||||
|
||||
tiheight = 16 + max(iheight, theight);
|
||||
wwidth = tleft + twidth + ileft + borwidth;
|
||||
|
|
Loading…
Reference in New Issue