mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOS] Add some DPRINTs in IopLoadServiceModule() and IopOpenRegistryKeyEx() to investigate why these 1st-stage text-mode hacks may be, or are (respectively) still needed.
svn path=/branches/setup_improvements/; revision=74748
This commit is contained in:
parent
2ed65d1555
commit
cb69c4c691
1 changed files with 7 additions and 1 deletions
|
@ -322,6 +322,7 @@ IopLoadServiceModule(
|
|||
if (ExpInTextModeSetup)
|
||||
{
|
||||
/* We have no registry, but luckily we know where all the drivers are */
|
||||
DPRINT1("IopLoadServiceModule(%wZ, 0x%p) called in ExpInTextModeSetup mode...\n", ServiceName, ModuleObject);
|
||||
|
||||
/* ServiceStart < 4 is all that matters */
|
||||
ServiceStart = 0;
|
||||
|
@ -1044,8 +1045,13 @@ IopInitializeBootDrivers(VOID)
|
|||
NULL,
|
||||
&BootEntry->RegistryPath,
|
||||
KEY_READ);
|
||||
DPRINT1("IopOpenRegistryKeyEx(%wZ) returned 0x%08lx\n", &BootEntry->RegistryPath, Status);
|
||||
#if 0
|
||||
if (NT_SUCCESS(Status))
|
||||
#else // Hack still needed...
|
||||
if ((NT_SUCCESS(Status)) || /* ReactOS HACK for SETUPLDR */
|
||||
((KeLoaderBlock->SetupLdrBlock) && ((KeyHandle = (PVOID)1)))) // yes, it's an assignment!
|
||||
#endif
|
||||
{
|
||||
/* Save the handle */
|
||||
DriverInfo->ServiceHandle = KeyHandle;
|
||||
|
@ -1122,7 +1128,7 @@ IopInitializeSystemDrivers(VOID)
|
|||
PUNICODE_STRING *DriverList, *SavedList;
|
||||
|
||||
/* No system drivers on the boot cd */
|
||||
if (KeLoaderBlock->SetupLdrBlock) return;
|
||||
if (KeLoaderBlock->SetupLdrBlock) return; // ExpInTextModeSetup
|
||||
|
||||
/* Get the driver list */
|
||||
SavedList = DriverList = CmGetSystemDriverList();
|
||||
|
|
Loading…
Reference in a new issue