[SHELL32] Addendum to r71980, RegSetValueEx expects a size in bytes, not chars. CORE...
authorMark Jansen <mark.jansen@reactos.org>
Sat, 23 Jul 2016 13:15:19 +0000 (13:15 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Sat, 23 Jul 2016 13:15:19 +0000 (13:15 +0000)
svn path=/trunk/; revision=71981

reactos/dll/win32/shell32/CNewMenu.cpp

index a9727ec..a7fe61e 100644 (file)
@@ -224,7 +224,7 @@ CNewMenu::CacheItems()
         return FALSE;
     }
     
-    if (RegSetValueExW(hKey, L"Classes", NULL, REG_MULTI_SZ, (LPBYTE)lpValues, dwSize) != ERROR_SUCCESS)
+    if (RegSetValueExW(hKey, L"Classes", NULL, REG_MULTI_SZ, (LPBYTE)lpValues, dwSize * sizeof(WCHAR)) != ERROR_SUCCESS)
     {
         HeapFree(GetProcessHeap(), 0, lpValues);
         return FALSE;