cmd: Fix invalid RegSetValueExW call in WCMD_assoc.
This commit is contained in:
parent
c08459d0be
commit
97b074d2da
|
@ -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
|
||||
***
|
||||
+++
|
||||
|
|
Loading…
Reference in New Issue