[WINESYNC] reg: Use RegOpenKeyExW() instead of RegOpenKeyW().

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id eee0c1f8f97d2d77118abb692e277dd440eed693 by Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
winesync 2022-01-16 20:48:04 +01:00 committed by Thomas Csovcsity
parent 8dc46f32b0
commit 6b9db85aaf
2 changed files with 2 additions and 2 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;

View file

@ -4,4 +4,4 @@ directories:
files:
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
tags:
wine: 2c84ec7ee04ab03883907691f115e01a7165b6e9
wine: eee0c1f8f97d2d77118abb692e277dd440eed693