Author: arty
Date: Sun Sep 9 15:09:56 2007
New Revision: 28971
URL:
http://svn.reactos.org/svn/reactos?rev=28971&view=rev
Log:
Don't dereference the object unless we actually referenced it. Cygwin apps
no longer bugcheck reactos when abnormally terminating.
Modified:
trunk/reactos/ntoskrnl/ob/obsecure.c
Modified: trunk/reactos/ntoskrnl/ob/obsecure.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obsecure.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/obsecure.c (original)
+++ trunk/reactos/ntoskrnl/ob/obsecure.c Sun Sep 9 15:09:56 2007
@@ -774,10 +774,11 @@
SeReleaseSecurityDescriptor((PSECURITY_DESCRIPTOR)CapturedDescriptor,
PreviousMode,
TRUE);
- }
-
- /* Now we can dereference the object */
- ObDereferenceObject(Object);
+
+ /* Now we can dereference the object */
+ ObDereferenceObject(Object);
+ }
+
return Status;
}