Don't check if user is admin before installing a device, as we're running DevInstallW in SYSTEM context (this would change one day...) Modified: trunk/reactos/lib/newdev/newdev.c _____
Modified: trunk/reactos/lib/newdev/newdev.c --- trunk/reactos/lib/newdev/newdev.c 2005-11-23 18:44:02 UTC (rev 19494) +++ trunk/reactos/lib/newdev/newdev.c 2005-11-23 19:29:38 UTC (rev 19495) @@ -873,11 +873,14 @@
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));