mirror of
https://github.com/reactos/reactos.git
synced 2025-07-12 14:14:13 +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
1 changed files with 3 additions and 2 deletions
|
@ -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 */
|
/* Now we can dereference the object */
|
||||||
ObDereferenceObject(Object);
|
ObDereferenceObject(Object);
|
||||||
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue