Commit bea945ee authored by Alexandre Julliard's avatar Alexandre Julliard

OpenServiceW: don't use the requested service access rights for the

registry key access rights, they are not the same thing.
parent 693a3cd0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment