mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
- Verify that we got a handle to a file object
svn path=/trunk/; revision=42768
This commit is contained in:
parent
6af2bfe3c7
commit
38a3ccc3fd
|
@ -130,7 +130,7 @@ static NTSTATUS TdiOpenDevice(
|
|||
if (NT_SUCCESS(Status)) {
|
||||
Status = ObReferenceObjectByHandle(*Handle, /* Handle to open file */
|
||||
GENERIC_READ | GENERIC_WRITE | SYNCHRONIZE, /* Access mode */
|
||||
NULL, /* Object type */
|
||||
IoFileObjectType, /* Object type */
|
||||
KernelMode, /* Access mode */
|
||||
(PVOID*)Object, /* Pointer to object */
|
||||
NULL); /* Handle information */
|
||||
|
|
Loading…
Reference in a new issue