OpenServiceW: don't use the requested service access rights for the
registry key access rights, they are not the same thing.
This commit is contained in:
parent
693a3cd049
commit
bea945eed9
|
@ -400,8 +400,7 @@ OpenServiceW(SC_HANDLE hSCManager, LPCWSTR lpServiceName,
|
||||||
TRACE("(%p,%p,%ld)\n",hSCManager, lpServiceName,
|
TRACE("(%p,%p,%ld)\n",hSCManager, lpServiceName,
|
||||||
dwDesiredAccess);
|
dwDesiredAccess);
|
||||||
|
|
||||||
/* FIXME: dwDesiredAccess may need some processing */
|
r = RegOpenKeyExW(hSCManager, lpServiceName, 0, KEY_ALL_ACCESS, &hKey );
|
||||||
r = RegOpenKeyExW(hSCManager, lpServiceName, 0, dwDesiredAccess, &hKey );
|
|
||||||
if (r!=ERROR_SUCCESS)
|
if (r!=ERROR_SUCCESS)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue