mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 01:21:00 +00:00
- 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:
parent
4f9ab3b9a5
commit
7c1178da04
|
@ -1576,7 +1576,7 @@ LoaderScan:
|
||||||
/* Setup image attributes */
|
/* Setup image attributes */
|
||||||
InitializeObjectAttributes(&ObjectAttributes,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
FileName,
|
FileName,
|
||||||
OBJ_CASE_INSENSITIVE,
|
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
@ -1586,7 +1586,7 @@ LoaderScan:
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
&IoStatusBlock,
|
&IoStatusBlock,
|
||||||
FILE_SHARE_READ | FILE_SHARE_DELETE,
|
FILE_SHARE_READ | FILE_SHARE_DELETE,
|
||||||
FILE_SYNCHRONOUS_IO_NONALERT);
|
0);
|
||||||
if (!NT_SUCCESS(Status)) goto Quickie;
|
if (!NT_SUCCESS(Status)) goto Quickie;
|
||||||
|
|
||||||
/* Validate it */
|
/* Validate it */
|
||||||
|
|
Loading…
Reference in a new issue