From 2c4a3c8ad6f3a5dc7feb566806fa6225dc713cc4 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 30 May 2008 10:03:30 +0200 Subject: [PATCH] user32: We no longer need to ensure that the BeginPaint window belongs to the current thread. --- dlls/user32/painting.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c index 7ec76349f04..436bd16a717 100644 --- a/dlls/user32/painting.c +++ b/dlls/user32/painting.c @@ -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;