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

Alexandre Julliard julliard at winehq.org
Fri May 30 05:41:53 CDT 2008


Module: wine
Branch: master
Commit: 2c4a3c8ad6f3a5dc7feb566806fa6225dc713cc4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2c4a3c8ad6f3a5dc7feb566806fa6225dc713cc4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri May 30 10:03:30 2008 +0200

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

---

 dlls/user32/painting.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c
index 7ec7634..436bd16 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;




More information about the wine-cvs mailing list