No sign extension for negative values.

This commit is contained in:
Fabian Cenedese 2004-02-25 01:23:49 +00:00 committed by Alexandre Julliard
parent 8cdcbbb342
commit 7dba7d3138

View File

@ -5238,7 +5238,7 @@ HRESULT WINAPI VarBstrFromI4(LONG lIn, LCID lcid, ULONG dwFlags, BSTR* pbstrOut)
if (lIn < 0)
{
ul64 = -lIn;
ul64 = (ULONG)-lIn;
dwFlags |= VAR_NEGATIVE;
}
return VARIANT_BstrFromUInt(ul64, lcid, dwFlags, pbstrOut);