[GREEN]: Fix 2nd parameter of ObOpenObjectByName.
[reactos.git] / rosapps / drivers / green / pnp.c
index a5253e3..a3ef66f 100644 (file)
@@ -50,7 +50,7 @@ CreateGreenFdo(
        InitializeObjectAttributes(&ObjectAttributes, &DriverExtension->AttachedDeviceName, OBJ_KERNEL_HANDLE, NULL, NULL);
        Status = ObOpenObjectByName(
                &ObjectAttributes,
-               IoFileObjectType,
+               *IoFileObjectType,
                KernelMode,
                NULL,
                DesiredAccess,