- Fix possible handle leak.

See issue #2934 for more details.

svn path=/trunk/; revision=31602
This commit is contained in:
Aleksey Bragin 2008-01-05 10:01:34 +00:00
parent 3a4e403d40
commit 0a5f4f5403

View file

@ -171,10 +171,11 @@ IopGetDeviceObjectPointer(IN PUNICODE_STRING ObjectName,
/* Return the requested data */
*DeviceObject = IoGetRelatedDeviceObject(LocalFileObject);
*FileObject = LocalFileObject;
ZwClose(FileHandle);
}
/* Close the handle */
ZwClose(FileHandle);
return Status;
}