Commit 848a6f1b authored by Alexandre Julliard's avatar Alexandre Julliard

Use RegOpenKey instead of RegOpenKeyEx to avoid trouble with handle

access rights.
parent a18f2061
......@@ -90,7 +90,7 @@ static char *get_config_key (const char *subkey, const char *name, const char *d
WINE_TRACE("subkey=%s, name=%s, def=%s\n", subkey, name, def);
res = RegOpenKeyEx(config_key, subkey, 0, KEY_READ, &hSubKey);
res = RegOpenKey(config_key, subkey, &hSubKey);
if (res != ERROR_SUCCESS)
{
if (res == ERROR_FILE_NOT_FOUND)
......@@ -171,7 +171,7 @@ static HRESULT remove_value(const char *subkey, const char *name)
WINE_TRACE("subkey=%s, name=%s\n", subkey, name);
hr = RegOpenKeyEx(config_key, subkey, 0, KEY_READ, &key);
hr = RegOpenKey(config_key, subkey, &key);
if (hr != S_OK) return hr;
hr = RegDeleteValue(key, name);
......@@ -341,7 +341,7 @@ char **enumerate_values(char *path)
int valueslen = 0;
struct list *cursor;
res = RegOpenKeyEx(config_key, path, 0, KEY_READ, &key);
res = RegOpenKey(config_key, path, &key);
if (res == ERROR_SUCCESS)
{
while (TRUE)
......
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