quartz: Fix calculating wide string size.

This commit is contained in:
Alexander Dorofeyev 2008-06-29 15:06:51 +03:00 committed by Alexandre Julliard
parent d19ad8f072
commit d6df899603
1 changed files with 1 additions and 1 deletions

View File

@ -1330,7 +1330,7 @@ static HRESULT WINAPI FilterMapper_RegisterFilter(IFilterMapper * iface, CLSID c
if (SUCCEEDED(hr))
{
lRet = RegSetValueExW(hKey, NULL, 0, REG_SZ, (const BYTE*)szName, strlenW(szName) + 1);
lRet = RegSetValueExW(hKey, NULL, 0, REG_SZ, (const BYTE*)szName, (strlenW(szName) + 1) * sizeof(WCHAR));
hr = HRESULT_FROM_WIN32(lRet);
CloseHandle(hKey);
}