mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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
1 changed files with 0 additions and 9 deletions
|
@ -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 a new issue