Alexander Dorofeyev : quartz: Fix accessing variant string.
Alexandre Julliard
julliard at winehq.org
Wed Jun 25 16:43:56 CDT 2008
Module: wine
Branch: master
Commit: c782cdad96caad50942cb96f8bf82c754c6285e5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c782cdad96caad50942cb96f8bf82c754c6285e5
Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date: Tue Jun 24 16:44:53 2008 +0300
quartz: Fix accessing variant string.
---
dlls/quartz/filtermapper.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c
index b54ccea..24055d6 100644
--- a/dlls/quartz/filtermapper.c
+++ b/dlls/quartz/filtermapper.c
@@ -1273,14 +1273,14 @@ static HRESULT WINAPI FilterMapper_EnumMatchingFilters(
if (SUCCEEDED(hrSub))
{
- len = (strlenW((WCHAR*)&V_UNION(&var, bstrVal))+1) * sizeof(WCHAR);
+ len = (strlenW((WCHAR*)V_UNION(&var, bstrVal))+1) * sizeof(WCHAR);
if (!(regfilters[idx].Name = CoTaskMemAlloc(len*2)))
hr = E_OUTOFMEMORY;
}
if (SUCCEEDED(hrSub))
{
- memcpy(regfilters[idx].Name, &V_UNION(&var, bstrVal), len);
+ memcpy(regfilters[idx].Name, V_UNION(&var, bstrVal), len);
regfilters[idx].Clsid = clsid;
idx++;
}
More information about the wine-cvs
mailing list