Alexander Dorofeyev : quartz: Fix calculating wide string size.

Alexandre Julliard julliard at winehq.org
Tue Jul 1 08:27:45 CDT 2008


Module: wine
Branch: master
Commit: d6df8996034fe430d75470edd990f1fd4bd1a976
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d6df8996034fe430d75470edd990f1fd4bd1a976

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Sun Jun 29 15:06:51 2008 +0300

quartz: Fix calculating wide string size.

---

 dlls/quartz/filtermapper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c
index 7f7e688..0676e90 100644
--- a/dlls/quartz/filtermapper.c
+++ b/dlls/quartz/filtermapper.c
@@ -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);
     }




More information about the wine-cvs mailing list