[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:
Pierre Schweitzer 2010-12-21 21:35:04 +00:00
parent a2ca649780
commit a5a6940af8

View file

@ -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;