mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Change the object to non permanent if an error occurs (in NtCreateDirectoryObject).
svn path=/trunk/; revision=15666
This commit is contained in:
@@ -484,6 +484,10 @@ NtCreateDirectoryObject (OUT PHANDLE DirectoryHandle,
|
||||
0,
|
||||
NULL,
|
||||
&hDirectory);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
ObMakeTemporaryObject(Directory);
|
||||
}
|
||||
ObDereferenceObject(Directory);
|
||||
|
||||
if(NT_SUCCESS(Status))
|
||||
|
||||
Reference in New Issue
Block a user