From cbe451a3dfdaf3e40f63542e7fc965d1e842dc90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Wed, 23 Nov 2005 19:29:38 +0000 Subject: [PATCH] Don't check if user is admin before installing a device, as we're running DevInstallW in SYSTEM context (this would change one day...) svn path=/trunk/; revision=19495 --- reactos/lib/newdev/newdev.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/reactos/lib/newdev/newdev.c b/reactos/lib/newdev/newdev.c index 675faeacae2..215d5ced093 100644 --- a/reactos/lib/newdev/newdev.c +++ b/reactos/lib/newdev/newdev.c @@ -873,11 +873,14 @@ DevInstallW( DWORD config_flags; /*TCHAR buf[128];*/ - if (!IsUserAdmin()) - { - /* XP kills the process... */ - ExitProcess(ERROR_ACCESS_DENIED); - } + /* FIXME: Nov 2005. umpnpmgr.exe is directly calling DevInstallW in + * SYSTEM context, which is not member of the Administrators group. + * So, just ignore the test at the moment... */ + //if (!IsUserAdmin()) + //{ + // /* XP kills the process... */ + // ExitProcess(ERROR_ACCESS_DENIED); + //} /* Clear devinst data */ ZeroMemory(&DevInstData, sizeof(DEVINSTDATA));