Author: jimtabor
Date: Fri Dec 26 17:00:03 2008
New Revision: 38363
URL:
http://svn.reactos.org/svn/reactos?rev=38363&view=rev
Log:
- Total commander crashes after pressing any key, see bug 2292.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Fri Dec 26 17:00:03
2008
@@ -1324,6 +1324,8 @@
ASSERT_REFS_CO(Window);
Wnd = Window->Wnd;
+ if (!Wnd) return FALSE;
+
WasVisible = (Wnd->Style & WS_VISIBLE) != 0;
switch (Cmd)