André Hentschel : oleaut32: Fix FormatString (valgrind ).

Alexandre Julliard julliard at winehq.org
Thu Mar 4 11:21:41 CST 2010


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Mar  3 20:39:45 2010 +0100

oleaut32: Fix FormatString (valgrind).

---

 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));




More information about the wine-cvs mailing list