Fix bad use of hwnd (bug: 9808)

This commit is contained in:
Colin Harrison 2007-05-09 16:55:09 +01:00 committed by Alan Hourihane
parent d3248b66a6
commit be44018a3c

View File

@ -444,7 +444,7 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
/* Avoid the BitBlt's if the PAINTSTRUCT is bogus */ /* 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) 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; return 0;
} }
@ -474,7 +474,7 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
} }
/* EndPaint frees the DC */ /* EndPaint frees the DC */
EndPaint (hwndScreen, &ps); EndPaint (hwnd, &ps);
return 0; return 0;
case WM_MOUSEMOVE: case WM_MOUSEMOVE: