Commit 2c4a3c8a authored by Alexandre Julliard's avatar Alexandre Julliard

user32: We no longer need to ensure that the BeginPaint window belongs to the current thread.

parent a2ba7dcf
......@@ -859,20 +859,11 @@ static HWND fix_caret(HWND hWnd, const RECT *scroll_rect, INT dx, INT dy,
*/
HDC WINAPI BeginPaint( HWND hwnd, PAINTSTRUCT *lps )
{
HWND full_handle;
HRGN hrgn;
UINT flags = UPDATE_NONCLIENT | UPDATE_ERASE | UPDATE_PAINT | UPDATE_INTERNALPAINT | UPDATE_NOCHILDREN;
if (!lps) return 0;
if (!(full_handle = WIN_IsCurrentThread( hwnd )))
{
if (IsWindow(hwnd))
FIXME( "window %p belongs to other thread\n", hwnd );
return 0;
}
hwnd = full_handle;
HideCaret( hwnd );
if (!(hrgn = send_ncpaint( hwnd, NULL, &flags ))) return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment