[ros-diffs] [arty] 28971: Don't dereference the object unless we actually referenced it. Cygwin apps no longer bugcheck reactos when abnormally terminating.
arty at svn.reactos.org
arty at svn.reactos.org
Sun Sep 9 13:09:57 CEST 2007
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=28971&r1=28970&r2=28971&view=diff
==============================================================================
--- 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;
}
More information about the Ros-diffs
mailing list