mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[SHELL32] Addendum to r71980, RegSetValueEx expects a size in bytes, not chars. CORE-10439
svn path=/trunk/; revision=71981
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user