oleaut32: Fix FormatString (valgrind).

This commit is contained in:
André Hentschel 2010-03-03 20:39:45 +01:00 committed by Alexandre Julliard
parent a360c98187
commit f73c8c4d42
1 changed files with 1 additions and 1 deletions

View File

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