oleaut32: Fix buffer length passed to VARIANT_DI_tostringW in VarBstrFromCy.
It's the number of elements, not the number of bytes.
This commit is contained in:
parent
3261814e08
commit
b234173b1f
|
@ -6516,7 +6516,7 @@ HRESULT WINAPI VarBstrFromCy(CY cyIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut)
|
|||
VARIANT_int_add(decVal.bitsnum, 3, &one, 1);
|
||||
}
|
||||
decVal.bitsnum[2] = 0;
|
||||
VARIANT_DI_tostringW(&decVal, buff, sizeof(buff));
|
||||
VARIANT_DI_tostringW(&decVal, buff, sizeof(buff)/sizeof(buff[0]));
|
||||
|
||||
if (dwFlags & LOCALE_USE_NLS)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue