[NTSOKRNL]

add a comment so that noone will stumble upon this atrocity a second time.

svn path=/trunk/; revision=50084
This commit is contained in:
Timo Kreuzer 2010-12-21 21:48:29 +00:00
parent a5a6940af8
commit 4a58e37b7c

View file

@ -191,7 +191,7 @@ IopSuffixUnicodeString(
* Display 'Loading XXX...' message. * Display 'Loading XXX...' message.
*/ */
VOID VOID
FASTCALL FASTCALL
INIT_FUNCTION INIT_FUNCTION
IopDisplayLoadingMessage(PUNICODE_STRING ServiceName) IopDisplayLoadingMessage(PUNICODE_STRING ServiceName)
@ -993,7 +993,7 @@ IopInitializeBootDrivers(VOID)
&BootEntry->RegistryPath, &BootEntry->RegistryPath,
KEY_READ); KEY_READ);
if ((NT_SUCCESS(Status)) || /* ReactOS HACK for SETUPLDR */ if ((NT_SUCCESS(Status)) || /* ReactOS HACK for SETUPLDR */
((KeLoaderBlock->SetupLdrBlock) && ((KeyHandle = (PVOID)1)))) ((KeLoaderBlock->SetupLdrBlock) && ((KeyHandle = (PVOID)1)))) // yes, it's an assignment!
{ {
/* Save the handle */ /* Save the handle */
DriverInfo->ServiceHandle = KeyHandle; DriverInfo->ServiceHandle = KeyHandle;
@ -1068,24 +1068,24 @@ INIT_FUNCTION
IopInitializeSystemDrivers(VOID) IopInitializeSystemDrivers(VOID)
{ {
PUNICODE_STRING *DriverList, *SavedList; PUNICODE_STRING *DriverList, *SavedList;
/* No system drivers on the boot cd */ /* No system drivers on the boot cd */
if (KeLoaderBlock->SetupLdrBlock) return; if (KeLoaderBlock->SetupLdrBlock) return;
/* Get the driver list */ /* Get the driver list */
SavedList = DriverList = CmGetSystemDriverList(); SavedList = DriverList = CmGetSystemDriverList();
ASSERT(DriverList); ASSERT(DriverList);
/* Loop it */ /* Loop it */
while (*DriverList) while (*DriverList)
{ {
/* Load the driver */ /* Load the driver */
ZwLoadDriver(*DriverList); ZwLoadDriver(*DriverList);
/* Free the entry */ /* Free the entry */
RtlFreeUnicodeString(*DriverList); RtlFreeUnicodeString(*DriverList);
ExFreePool(*DriverList); ExFreePool(*DriverList);
/* Next entry */ /* Next entry */
InbvIndicateProgress(); InbvIndicateProgress();
DriverList++; DriverList++;