oleaut32: Fix FormatString (valgrind)

André Hentschel nerv at dawncrow.de
Wed Mar 3 13:39:45 CST 2010


vStr is what we are looking for
---
 dlls/oleaut32/varformat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/oleaut32/varformat.c b/dlls/oleaut32/varformat.c
index 52ea37a..10f5038 100644
--- a/dlls/oleaut32/varformat.c
+++ b/dlls/oleaut32/varformat.c
@@ -1963,7 +1963,7 @@ static HRESULT VARIANT_FormatString(LPVARIANT pVarIn, LPOLESTR lpszFormat,
     if (FAILED(hRes))
       return hRes;
 
-    if (V_BSTR(pVarIn)[0] == '\0')
+    if (V_BSTR(&vStr)[0] == '\0')
       strHeader = (FMT_STRING_HEADER*)(rgbTok + FmtGetNegative(header));
     else
       strHeader = (FMT_STRING_HEADER*)(rgbTok + FmtGetPositive(header));
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list