Author: jimtabor
Date: Fri Apr 8 18:48:28 2011
New Revision: 51282
URL:
http://svn.reactos.org/svn/reactos?rev=51282&view=rev
Log:
[Win32k]
- Fix crash in msg test_interthread_message test. Noticed it once and not sure how to
track it.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/object.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/object.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/object.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/object.c [iso-8859-1] Fri Apr 8 18:48:28
2011
@@ -407,6 +407,11 @@
{
entry = handle_to_entry(gHandleTable, ((PHEAD)object)->h );
+ if (!entry)
+ {
+ DPRINT1("warning! Dereference Object without ENTRY! Obj -> 0x%x\n",
object);
+ return FALSE;
+ }
DPRINT("warning! Dereference to zero! Obj -> 0x%x\n", object);
((PHEAD)object)->cLockObj = 0;