- Fix two potential crashes

svn path=/trunk/; revision=41080
This commit is contained in:
Dmitry Chapyshev 2009-05-23 17:20:30 +00:00
parent e9441ce05c
commit 25e390f1bd
2 changed files with 2 additions and 0 deletions

View file

@ -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;
} }

View file

@ -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)