- Verify that we got a handle to a file object
authorCameron Gutman <aicommander@gmail.com>
Tue, 18 Aug 2009 16:23:31 +0000 (16:23 +0000)
committerCameron Gutman <aicommander@gmail.com>
Tue, 18 Aug 2009 16:23:31 +0000 (16:23 +0000)
svn path=/trunk/; revision=42768

reactos/drivers/network/afd/afd/tdi.c

index 50cf59d..5fc90e2 100644 (file)
@@ -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 */