Author: jimtabor
Date: Fri Jul 3 12:03:56 2009
New Revision: 41753
URL:
http://svn.reactos.org/svn/reactos?rev=41753&view=rev
Log:
- More Window Threads issues. Need to finish the window object rewrite!
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/vis.c
trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/vis.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/vis.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/vis.c [iso-8859-1] Fri Jul 3 12:03:56
2009
@@ -43,7 +43,7 @@
Wnd = Window->Wnd;
- if (!(Wnd->Style & WS_VISIBLE))
+ if (!Wnd || !(Wnd->Style & WS_VISIBLE))
{
return NULL;
}
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 Jul 3 12:03:56
2009
@@ -759,6 +759,9 @@
WinPosFixupFlags(WINDOWPOS *WinPos, PWINDOW_OBJECT Window)
{
PWINDOW Wnd = Window->Wnd;
+
+ if (!Wnd) return FALSE;
+
if (Wnd->Style & WS_VISIBLE)
{
WinPos->flags &= ~SWP_SHOWWINDOW;