[NTOS:IO]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 6 Apr 2016 20:02:38 +0000 (20:02 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 6 Apr 2016 20:02:38 +0000 (20:02 +0000)
- Get rid of some magic numbers

svn path=/trunk/; revision=71110

reactos/ntoskrnl/io/iomgr/driver.c

index 499e42f..3ea220e 100644 (file)
@@ -2001,8 +2001,8 @@ IopLoadUnloadDriver(
      */
     Status = IopGetDriverObject(DriverObject,
                                 &ServiceName,
      */
     Status = IopGetDriverObject(DriverObject,
                                 &ServiceName,
-                                (Type == 2 /* SERVICE_FILE_SYSTEM_DRIVER */ ||
-                                 Type == 8 /* SERVICE_RECOGNIZER_DRIVER */));
+                                (Type == SERVICE_FILE_SYSTEM_DRIVER ||
+                                 Type == SERVICE_RECOGNIZER_DRIVER));
 
     if (!NT_SUCCESS(Status))
     {
 
     if (!NT_SUCCESS(Status))
     {
@@ -2037,8 +2037,8 @@ IopLoadUnloadDriver(
         Status = IopInitializeDriverModule(DeviceNode,
                                            ModuleObject,
                                            &DeviceNode->ServiceName,
         Status = IopInitializeDriverModule(DeviceNode,
                                            ModuleObject,
                                            &DeviceNode->ServiceName,
-                                           (Type == 2 /* SERVICE_FILE_SYSTEM_DRIVER */ ||
-                                            Type == 8 /* SERVICE_RECOGNIZER_DRIVER */),
+                                           (Type == SERVICE_FILE_SYSTEM_DRIVER ||
+                                            Type == SERVICE_RECOGNIZER_DRIVER),
                                            DriverObject);
         if (!NT_SUCCESS(Status))
         {
                                            DriverObject);
         if (!NT_SUCCESS(Status))
         {