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:
Alexandre Julliard 2004-04-12 22:18:39 +00:00
parent 693a3cd049
commit bea945eed9

View File

@ -400,8 +400,7 @@ OpenServiceW(SC_HANDLE hSCManager, LPCWSTR lpServiceName,
TRACE("(%p,%p,%ld)\n",hSCManager, lpServiceName,
dwDesiredAccess);
/* FIXME: dwDesiredAccess may need some processing */
r = RegOpenKeyExW(hSCManager, lpServiceName, 0, dwDesiredAccess, &hKey );
r = RegOpenKeyExW(hSCManager, lpServiceName, 0, KEY_ALL_ACCESS, &hKey );
if (r!=ERROR_SUCCESS)
return 0;