- 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.

svn path=/trunk/; revision=25892
This commit is contained in:
Alex Ionescu 2007-02-23 15:35:14 +00:00
parent 4f9ab3b9a5
commit 7c1178da04

View file

@ -1576,7 +1576,7 @@ LoaderScan:
/* Setup image attributes */
InitializeObjectAttributes(&ObjectAttributes,
FileName,
OBJ_CASE_INSENSITIVE,
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
NULL,
NULL);
@ -1586,7 +1586,7 @@ LoaderScan:
&ObjectAttributes,
&IoStatusBlock,
FILE_SHARE_READ | FILE_SHARE_DELETE,
FILE_SYNCHRONOUS_IO_NONALERT);
0);
if (!NT_SUCCESS(Status)) goto Quickie;
/* Validate it */