mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +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:
parent
7541633310
commit
98de7f1bae
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue