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

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2021-03-29 23:24:31 +11:00 committed by Alexandre Julliard
parent 35d0fda0f0
commit eee0c1f8f9
1 changed files with 1 additions and 1 deletions

View File

@ -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;