[ros-diffs] [ion] 25892: - Load the driver image file with OBJ_KERNEL_HANDLE, and don't use FILE_SYNCHRONOUSIO_NONALERT, since we can use async access since the data is now being mapped instead of read.

ion at svn.reactos.org ion at svn.reactos.org
Fri Feb 23 16:35:15 CET 2007


Author: ion
Date: Fri Feb 23 18:35:14 2007
New Revision: 25892

URL: http://svn.reactos.org/svn/reactos?rev=25892&view=rev
Log:
- Load the driver image file with OBJ_KERNEL_HANDLE, and don't use FILE_SYNCHRONOUSIO_NONALERT, since we can use async access since the data is now being mapped instead of read.

Modified:
    trunk/reactos/ntoskrnl/mm/sysldr.c

Modified: trunk/reactos/ntoskrnl/mm/sysldr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/sysldr.c?rev=25892&r1=25891&r2=25892&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/sysldr.c (original)
+++ trunk/reactos/ntoskrnl/mm/sysldr.c Fri Feb 23 18:35:14 2007
@@ -1576,7 +1576,7 @@
         /* Setup image attributes */
         InitializeObjectAttributes(&ObjectAttributes,
                                    FileName,
-                                   OBJ_CASE_INSENSITIVE,
+                                   OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
                                    NULL,
                                    NULL);
 
@@ -1586,7 +1586,7 @@
                             &ObjectAttributes,
                             &IoStatusBlock,
                             FILE_SHARE_READ | FILE_SHARE_DELETE,
-                            FILE_SYNCHRONOUS_IO_NONALERT);
+                            0);
         if (!NT_SUCCESS(Status)) goto Quickie;
 
         /* Validate it */




More information about the Ros-diffs mailing list