oleaut32: Fix FormatString (valgrind).
This commit is contained in:
parent
a360c98187
commit
f73c8c4d42
|
@ -1963,7 +1963,7 @@ static HRESULT VARIANT_FormatString(LPVARIANT pVarIn, LPOLESTR lpszFormat,
|
||||||
if (FAILED(hRes))
|
if (FAILED(hRes))
|
||||||
return hRes;
|
return hRes;
|
||||||
|
|
||||||
if (V_BSTR(pVarIn)[0] == '\0')
|
if (V_BSTR(&vStr)[0] == '\0')
|
||||||
strHeader = (FMT_STRING_HEADER*)(rgbTok + FmtGetNegative(header));
|
strHeader = (FMT_STRING_HEADER*)(rgbTok + FmtGetNegative(header));
|
||||||
else
|
else
|
||||||
strHeader = (FMT_STRING_HEADER*)(rgbTok + FmtGetPositive(header));
|
strHeader = (FMT_STRING_HEADER*)(rgbTok + FmtGetPositive(header));
|
||||||
|
|
Loading…
Reference in New Issue