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

reg: Use RegCreateKeyExW() instead of RegCreateKeyW().

parent 08976b3e
......@@ -154,7 +154,8 @@ static int run_add(HKEY root, WCHAR *path, WCHAR *value_name, BOOL value_empty,
{
HKEY key;
if (RegCreateKeyW(root, path, &key) != ERROR_SUCCESS)
if (RegCreateKeyExW(root, path, 0, NULL, REG_OPTION_NON_VOLATILE,
KEY_READ|KEY_WRITE, NULL, &key, NULL))
{
output_message(STRING_INVALID_KEY);
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