Author: jimtabor
Date: Thu Nov 8 11:04:58 2007
New Revision: 30261
URL:
http://svn.reactos.org/svn/reactos?rev=30261&view=rev
Log:
Temp fix for the Window Handle issue.
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 (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/object.c Thu Nov 8 11:04:58 2007
@@ -292,6 +292,9 @@
hdr->RefCount--;
+ // You can not have a zero here!
+ if (!hdr->destroyed && hdr->RefCount == 0) hdr->RefCount++; //
BOUNCE!!!!!
+
if (hdr->RefCount == 0 && hdr->destroyed)
{
// DPRINT1("info: something destroyed bcaise of deref, in
use=%i\n",usedHandles);