mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
Don't try to open a harddisk for reading when checking for it to create the PhysicalDriveN links. Instead, request FILE_READ_ATTRIBUTES. This silences a hack-warning in IopParseDevice, that now possibly can be removed.
svn path=/trunk/; revision=29702
This commit is contained in:
parent
c94bf60692
commit
8bca67688e
2 changed files with 4 additions and 1 deletions
|
@ -481,7 +481,7 @@ xHalIoAssignDriveLetters(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|||
NULL);
|
||||
|
||||
Status = ZwOpenFile(&FileHandle,
|
||||
FILE_READ_DATA | SYNCHRONIZE,
|
||||
FILE_READ_ATTRIBUTES | SYNCHRONIZE,
|
||||
&ObjectAttributes,
|
||||
&StatusBlock,
|
||||
FILE_SHARE_READ,
|
||||
|
|
|
@ -404,6 +404,9 @@ IopParseDevice(IN PVOID ParseObject,
|
|||
|
||||
/* FIXME: Small hack still exists, have to check why...
|
||||
* This is triggered multiple times by usetup and then once per boot.
|
||||
* TMN: NOTE: It might have been fixed now, by changing the requested
|
||||
* openmode in xHalIoAssignDriveLetters from FILE_READ_DATA to
|
||||
* FILE_READ_ATTRIBUTES. If verified, this hack should be removed.
|
||||
*/
|
||||
if (!(DirectOpen) &&
|
||||
!(RemainingName->Length) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue