Author: cgutman
Date: Tue Aug 18 18:23:31 2009
New Revision: 42768
URL:
http://svn.reactos.org/svn/reactos?rev=42768&view=rev
Log:
- Verify that we got a handle to a file object
Modified:
trunk/reactos/drivers/network/afd/afd/tdi.c
Modified: trunk/reactos/drivers/network/afd/afd/tdi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/td…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/tdi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/tdi.c [iso-8859-1] Tue Aug 18 18:23:31 2009
@@ -130,7 +130,7 @@
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 */