Commit eee0c1f8 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg: Use RegOpenKeyExW() instead of RegOpenKeyW().

parent 35d0fda0
......@@ -53,7 +53,7 @@ int reg_delete(HKEY root, WCHAR *path, WCHAR *key_name, WCHAR *value_name,
return 0;
}
if (RegOpenKeyW(root, path, &key) != ERROR_SUCCESS)
if (RegOpenKeyExW(root, path, 0, KEY_READ|KEY_SET_VALUE, &key))
{
output_message(STRING_CANNOT_FIND);
return 1;
......
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