mirror of
https://github.com/reactos/wine.git
synced 2025-02-18 11:58:22 +00:00
Avoid a crash in free_window_handle() on an invalid window handle.
This commit is contained in:
parent
71ff4c4f4e
commit
3f5990eb9a
@ -139,14 +139,16 @@ static WND *free_window_handle( HWND hwnd )
|
||||
{
|
||||
req->handle = hwnd;
|
||||
if (!wine_server_call_err( req ))
|
||||
{
|
||||
user_handles[index] = NULL;
|
||||
ptr->dwMagic = 0;
|
||||
}
|
||||
else
|
||||
ptr = NULL;
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
}
|
||||
USER_Unlock();
|
||||
ptr->dwMagic = 0;
|
||||
HeapFree( GetProcessHeap(), 0, ptr );
|
||||
return ptr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user