user32: We no longer need to ensure that the BeginPaint window belongs to the current thread.
This commit is contained in:
parent
a2ba7dcf7b
commit
2c4a3c8ad6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue