Don't check if user is admin before installing a device, as we're running DevInstallW...
authorHervé Poussineau <hpoussin@reactos.org>
Wed, 23 Nov 2005 19:29:38 +0000 (19:29 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Wed, 23 Nov 2005 19:29:38 +0000 (19:29 +0000)
svn path=/trunk/; revision=19495

reactos/lib/newdev/newdev.c

index 675faea..215d5ce 100644 (file)
@@ -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));