Commit 97b074d2 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

cmd: Fix invalid RegSetValueExW call in WCMD_assoc.

parent c08459d0
......@@ -2943,7 +2943,8 @@ void WCMD_assoc (const WCHAR *command, BOOL assoc) {
accessOptions, NULL, &readKey, NULL);
if (rc == ERROR_SUCCESS) {
rc = RegSetValueExW(readKey, NULL, 0, REG_SZ,
(LPBYTE)newValue, strlenW(newValue));
(LPBYTE)newValue,
sizeof(WCHAR) * (strlenW(newValue) + 1));
RegCloseKey(readKey);
}
......
......@@ -658,9 +658,9 @@ file created in read-only dir
...setting association
***
.foo=bar
@todo_wine@.foo=bar
.foo=bar
+++
@todo_wine@.foo=bar
.foo=bar
...resetting association
***
+++
......
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