From: Hervé Poussineau Date: Wed, 23 Nov 2005 19:29:38 +0000 (+0000) Subject: Don't check if user is admin before installing a device, as we're running DevInstallW... X-Git-Tag: backups/ros-branch-0_2_9@19949~433 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=cbe451a3dfdaf3e40f63542e7fc965d1e842dc90 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 --- 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));