mirror of
https://github.com/reactos/reactos.git
synced 2025-07-14 05:14:14 +00:00
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
This commit is contained in:
parent
269a84332f
commit
cbe451a3df
1 changed files with 8 additions and 5 deletions
|
@ -873,11 +873,14 @@ DevInstallW(
|
||||||
DWORD config_flags;
|
DWORD config_flags;
|
||||||
/*TCHAR buf[128];*/
|
/*TCHAR buf[128];*/
|
||||||
|
|
||||||
if (!IsUserAdmin())
|
/* FIXME: Nov 2005. umpnpmgr.exe is directly calling DevInstallW in
|
||||||
{
|
* SYSTEM context, which is not member of the Administrators group.
|
||||||
/* XP kills the process... */
|
* So, just ignore the test at the moment... */
|
||||||
ExitProcess(ERROR_ACCESS_DENIED);
|
//if (!IsUserAdmin())
|
||||||
}
|
//{
|
||||||
|
// /* XP kills the process... */
|
||||||
|
// ExitProcess(ERROR_ACCESS_DENIED);
|
||||||
|
//}
|
||||||
|
|
||||||
/* Clear devinst data */
|
/* Clear devinst data */
|
||||||
ZeroMemory(&DevInstData, sizeof(DEVINSTDATA));
|
ZeroMemory(&DevInstData, sizeof(DEVINSTDATA));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue