Fix bad use of hwnd (bug: 9808)
This commit is contained in:
parent
d3248b66a6
commit
be44018a3c
|
@ -444,7 +444,7 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
|
|||
/* Avoid the BitBlt's if the PAINTSTRUCT is bogus */
|
||||
if (ps.rcPaint.right==0 && ps.rcPaint.bottom==0 && ps.rcPaint.left==0 && ps.rcPaint.top==0)
|
||||
{
|
||||
EndPaint (hwndScreen, &ps);
|
||||
EndPaint (hwnd, &ps);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -474,7 +474,7 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
|
|||
}
|
||||
|
||||
/* EndPaint frees the DC */
|
||||
EndPaint (hwndScreen, &ps);
|
||||
EndPaint (hwnd, &ps);
|
||||
return 0;
|
||||
|
||||
case WM_MOUSEMOVE:
|
||||
|
|
Loading…
Reference in New Issue
Block a user