mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[NTOSKRNL]
Actually, code was correct, but ugly (who said "normal, that's a hack). So, when that code is called from SetupLDR, KeyHandle is required to be to 1. This what code does. Thing we do in the if condition when it appears we are called from SetupLDR. To avoid any further question, or warning, adding more parenthesis to show that we know what we do. So, to sum up, there's no comparaison for KeyHandle svn path=/trunk/; revision=50083
This commit is contained in:
parent
a2ca649780
commit
a5a6940af8
1 changed files with 20 additions and 20 deletions
|
@ -993,7 +993,7 @@ IopInitializeBootDrivers(VOID)
|
|||
&BootEntry->RegistryPath,
|
||||
KEY_READ);
|
||||
if ((NT_SUCCESS(Status)) || /* ReactOS HACK for SETUPLDR */
|
||||
((KeLoaderBlock->SetupLdrBlock) && (KeyHandle == (PVOID)1)))
|
||||
((KeLoaderBlock->SetupLdrBlock) && ((KeyHandle = (PVOID)1))))
|
||||
{
|
||||
/* Save the handle */
|
||||
DriverInfo->ServiceHandle = KeyHandle;
|
||||
|
|
Loading…
Reference in a new issue