mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Fix two potential crashes
svn path=/trunk/; revision=41080
This commit is contained in:
parent
e9441ce05c
commit
25e390f1bd
2 changed files with 2 additions and 0 deletions
|
@ -227,6 +227,7 @@ NtUserNotifyWinEvent(
|
||||||
/* Validate input */
|
/* Validate input */
|
||||||
if (hWnd && (hWnd != INVALID_HANDLE_VALUE) && !(Window = UserGetWindowObject(hWnd)))
|
if (hWnd && (hWnd != INVALID_HANDLE_VALUE) && !(Window = UserGetWindowObject(hWnd)))
|
||||||
{
|
{
|
||||||
|
UserLeave();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2042,6 +2042,7 @@ NtUserMessageCall(
|
||||||
/* Validate input */
|
/* Validate input */
|
||||||
if (hWnd && (hWnd != INVALID_HANDLE_VALUE) && !(Window = UserGetWindowObject(hWnd)))
|
if (hWnd && (hWnd != INVALID_HANDLE_VALUE) && !(Window = UserGetWindowObject(hWnd)))
|
||||||
{
|
{
|
||||||
|
UserLeave();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
switch(dwType)
|
switch(dwType)
|
||||||
|
|
Loading…
Reference in a new issue