mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Avoid crashes if window belongs to another process.
This commit is contained in:
parent
9c6ba05436
commit
b4d3cb599e
@ -150,7 +150,7 @@ static BOOL WIN_HaveToDelayNCPAINT( HWND hwnd, UINT uncFlags)
|
||||
while ((hwnd = GetAncestor( hwnd, GA_PARENT )))
|
||||
{
|
||||
WND* parentWnd = WIN_FindWndPtr( hwnd );
|
||||
if (!(parentWnd->dwStyle & WS_CLIPCHILDREN) && parentWnd->hrgnUpdate)
|
||||
if (parentWnd && !(parentWnd->dwStyle & WS_CLIPCHILDREN) && parentWnd->hrgnUpdate)
|
||||
{
|
||||
WIN_ReleaseWndPtr( parentWnd );
|
||||
return TRUE;
|
||||
@ -335,7 +335,7 @@ static void RDW_ValidateParent(WND *wndChild)
|
||||
while (parent && parent != GetDesktopWindow())
|
||||
{
|
||||
WND *wndParent = WIN_FindWndPtr( parent );
|
||||
if (!(wndParent->dwStyle & WS_CLIPCHILDREN))
|
||||
if (wndParent && !(wndParent->dwStyle & WS_CLIPCHILDREN))
|
||||
{
|
||||
if (wndParent->hrgnUpdate != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user