Author: hpoussin
Date: Sat Jul 1 01:49:12 2006
New Revision: 22730
URL:
http://svn.reactos.org/svn/reactos?rev=22730&view=rev
Log:
Pass the correct object type and desired access to ObOpenObjectByName
Modified:
trunk/reactos/drivers/base/green/pnp.c
Modified: trunk/reactos/drivers/base/green/pnp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/base/green/pnp.c?r…
==============================================================================
--- trunk/reactos/drivers/base/green/pnp.c (original)
+++ trunk/reactos/drivers/base/green/pnp.c Sat Jul 1 01:49:12 2006
@@ -21,7 +21,7 @@
OBJECT_ATTRIBUTES ObjectAttributes;
ULONG Fcr;
HANDLE LocalHandle = 0;
- ACCESS_MASK DesiredAccess = 0; /* FIXME */
+ ACCESS_MASK DesiredAccess = FILE_ANY_ACCESS;
NTSTATUS Status;
DriverExtension = IoGetDriverObjectExtension(DriverObject, DriverObject);
@@ -50,7 +50,7 @@
InitializeObjectAttributes(&ObjectAttributes,
&DriverExtension->AttachedDeviceName, OBJ_KERNEL_HANDLE, NULL, NULL);
Status = ObOpenObjectByName(
&ObjectAttributes,
- IoDeviceObjectType,
+ IoFileObjectType,
KernelMode,
NULL,
DesiredAccess,