mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NTOS]: Close an opened handle after usage.
svn path=/trunk/; revision=74584
This commit is contained in:
@@ -186,7 +186,7 @@ xHalpGetRDiskCount(VOID)
|
||||
Skip = 0;
|
||||
while (NT_SUCCESS(Status))
|
||||
{
|
||||
Status = NtQueryDirectoryObject (DirectoryHandle,
|
||||
Status = ZwQueryDirectoryObject (DirectoryHandle,
|
||||
DirectoryInfo,
|
||||
2 * PAGE_SIZE,
|
||||
FALSE,
|
||||
@@ -223,6 +223,9 @@ xHalpGetRDiskCount(VOID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ZwClose(DirectoryHandle);
|
||||
|
||||
ExFreePoolWithTag(DirectoryInfo, TAG_FILE_SYSTEM);
|
||||
return RDiskCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user