mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 12:15:46 +00:00
Don't dereference the object unless we actually referenced it. Cygwin apps
no longer bugcheck reactos when abnormally terminating. svn path=/trunk/; revision=28971
This commit is contained in:
parent
b4bf4d4ce9
commit
10b515935a
|
@ -774,10 +774,11 @@ NtSetSecurityObject(IN HANDLE Handle,
|
||||||
SeReleaseSecurityDescriptor((PSECURITY_DESCRIPTOR)CapturedDescriptor,
|
SeReleaseSecurityDescriptor((PSECURITY_DESCRIPTOR)CapturedDescriptor,
|
||||||
PreviousMode,
|
PreviousMode,
|
||||||
TRUE);
|
TRUE);
|
||||||
|
|
||||||
|
/* Now we can dereference the object */
|
||||||
|
ObDereferenceObject(Object);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Now we can dereference the object */
|
|
||||||
ObDereferenceObject(Object);
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue