cmd: Fix invalid RegSetValueExW call in WCMD_assoc.

This commit is contained in:
Frédéric Delanoy 2011-08-29 21:45:17 +02:00 committed by Alexandre Julliard
parent c08459d0be
commit 97b074d2da
2 changed files with 4 additions and 3 deletions

View File

@ -2943,7 +2943,8 @@ void WCMD_assoc (const WCHAR *command, BOOL assoc) {
accessOptions, NULL, &readKey, NULL); accessOptions, NULL, &readKey, NULL);
if (rc == ERROR_SUCCESS) { if (rc == ERROR_SUCCESS) {
rc = RegSetValueExW(readKey, NULL, 0, REG_SZ, rc = RegSetValueExW(readKey, NULL, 0, REG_SZ,
(LPBYTE)newValue, strlenW(newValue)); (LPBYTE)newValue,
sizeof(WCHAR) * (strlenW(newValue) + 1));
RegCloseKey(readKey); RegCloseKey(readKey);
} }

View File

@ -658,9 +658,9 @@ file created in read-only dir
...setting association ...setting association
*** ***
.foo=bar .foo=bar
@todo_wine@.foo=bar .foo=bar
+++ +++
@todo_wine@.foo=bar .foo=bar
...resetting association ...resetting association
*** ***
+++ +++