mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 06:06:50 +00:00
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:
parent
35d0fda0f0
commit
eee0c1f8f9
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue