[ros-diffs] [dchapyshev] 41080: - Fix two potential crashes

dchapyshev at svn.reactos.org dchapyshev at svn.reactos.org
Sat May 23 19:20:32 CEST 2009


Author: dchapyshev
Date: Sat May 23 21:20:30 2009
New Revision: 41080

URL: http://svn.reactos.org/svn/reactos?rev=41080&view=rev
Log:
- Fix two potential crashes

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/event.c
    trunk/reactos/subsystems/win32/win32k/ntuser/message.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/event.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/event.c?rev=41080&r1=41079&r2=41080&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/event.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/event.c [iso-8859-1] Sat May 23 21:20:30 2009
@@ -227,6 +227,7 @@
    /* Validate input */
    if (hWnd && (hWnd != INVALID_HANDLE_VALUE) && !(Window = UserGetWindowObject(hWnd)))
    {
+      UserLeave();
       return;
    }   
    

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/message.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/message.c?rev=41080&r1=41079&r2=41080&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] Sat May 23 21:20:30 2009
@@ -2042,6 +2042,7 @@
    /* Validate input */
    if (hWnd && (hWnd != INVALID_HANDLE_VALUE) && !(Window = UserGetWindowObject(hWnd)))
    {
+      UserLeave();
       return 0;
    }
    switch(dwType)



More information about the Ros-diffs mailing list