Author: fireball
Date: Fri Sep 10 18:13:02 2010
New Revision: 48732
URL:
http://svn.reactos.org/svn/reactos?rev=48732&view=rev
Log:
[WIN32K]
- Giannis Adamopoulos: Only dereference a class if it's valid, should fix Heroes 3
crash.
See issue #5606 for more details.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Fri Sep 10 18:13:02
2010
@@ -2184,7 +2184,7 @@
/* If the window was created, the class will be dereferenced by
co_UserDestroyWindow */
if (Window)
co_UserDestroyWindow(Window);
- else
+ else if (Class)
IntDereferenceClass(Class, pti->pDeskInfo, pti->ppi);
}