mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:52:56 +00:00
- Fix possible handle leak.
See issue #2934 for more details. svn path=/trunk/; revision=31602
This commit is contained in:
parent
3a4e403d40
commit
0a5f4f5403
1 changed files with 2 additions and 1 deletions
|
@ -171,10 +171,11 @@ IopGetDeviceObjectPointer(IN PUNICODE_STRING ObjectName,
|
||||||
/* Return the requested data */
|
/* Return the requested data */
|
||||||
*DeviceObject = IoGetRelatedDeviceObject(LocalFileObject);
|
*DeviceObject = IoGetRelatedDeviceObject(LocalFileObject);
|
||||||
*FileObject = LocalFileObject;
|
*FileObject = LocalFileObject;
|
||||||
ZwClose(FileHandle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Close the handle */
|
/* Close the handle */
|
||||||
|
ZwClose(FileHandle);
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue