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:
Rob Shearman 2008-08-17 18:32:50 +01:00 committed by Alexandre Julliard
parent 3261814e08
commit b234173b1f
1 changed files with 1 additions and 1 deletions

View File

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