From 6b41510d8b3e02f12ad8e8629c876942e51ecbd2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 27 May 2011 03:40:22 +0000 Subject: [PATCH] [USETUP] - Disable the 1st stage user-mode PnP manager because it is creating incomplete registry keys which is confusing the real user-mode PnP manager and preventing devices installed in 1st stage from appearing in device manager - Fixes displaying PCI bus controllers in device manager - I need to discuss with Herve what should be done with this code svn path=/trunk/; revision=51947 --- reactos/base/setup/usetup/interface/usetup.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/base/setup/usetup/interface/usetup.c b/reactos/base/setup/usetup/interface/usetup.c index e0f503e7503..1adcb658518 100644 --- a/reactos/base/setup/usetup/interface/usetup.c +++ b/reactos/base/setup/usetup/interface/usetup.c @@ -3776,10 +3776,14 @@ RunUSetup(VOID) INPUT_RECORD Ir; PAGE_NUMBER Page; LARGE_INTEGER Time; - NTSTATUS Status; +// NTSTATUS Status; NtQuerySystemTime(&Time); +#if 0 /* This minimal PnP implementation causes problems because it writes + * half complete registry entries which cause devices installed by this + * method (PCI) to be improperly installed and not recognized by device manager + */ Status = RtlCreateUserThread(NtCurrentProcess(), NULL, TRUE, @@ -3791,6 +3795,7 @@ RunUSetup(VOID) &hPnpThread, NULL); if (!NT_SUCCESS(Status)) +#endif hPnpThread = INVALID_HANDLE_VALUE; if (!CONSOLE_Init())