Fixed FilterMapper2_CreateCategory.

This commit is contained in:
Christian Costa 2004-09-01 01:28:22 +00:00 committed by Alexandre Julliard
parent 3c4525af93
commit 4f5075c381
1 changed files with 2 additions and 2 deletions

View File

@ -265,12 +265,12 @@ static HRESULT WINAPI FilterMapper2_CreateCategory(
if (SUCCEEDED(hr))
{
hr = HRESULT_FROM_WIN32(RegSetValueExW(hKey, wszFriendlyName, 0, REG_SZ, (LPBYTE)szDescription, strlenW(szDescription) + 1));
hr = HRESULT_FROM_WIN32(RegSetValueExW(hKey, wszFriendlyName, 0, REG_SZ, (LPBYTE)szDescription, (strlenW(szDescription) + 1) * sizeof(WCHAR)));
}
if (SUCCEEDED(hr))
{
hr = HRESULT_FROM_WIN32(RegSetValueExW(hKey, wszClsidName, 0, REG_SZ, (LPBYTE)wClsidCategory, strlenW(wClsidCategory) + 1));
hr = HRESULT_FROM_WIN32(RegSetValueExW(hKey, wszClsidName, 0, REG_SZ, (LPBYTE)wClsidCategory, (strlenW(wClsidCategory) + 1) * sizeof(WCHAR)));
}
if (SUCCEEDED(hr))