Rob Shearman : oleaut32: Fix buffer length passed to VARIANT_DI_tostringW in VarBstrFromCy.
Alexandre Julliard
julliard at winehq.org
Mon Aug 18 10:47:23 CDT 2008
Module: wine
Branch: master
Commit: b234173b1fdf446c8425ca4de16e53f290ce7a74
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b234173b1fdf446c8425ca4de16e53f290ce7a74
Author: Rob Shearman <robertshearman at gmail.com>
Date: Sun Aug 17 18:32:50 2008 +0100
oleaut32: Fix buffer length passed to VARIANT_DI_tostringW in VarBstrFromCy.
It's the number of elements, not the number of bytes.
---
dlls/oleaut32/vartype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c
index 318a58a..5f697c8 100644
--- a/dlls/oleaut32/vartype.c
+++ b/dlls/oleaut32/vartype.c
@@ -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)
{
More information about the wine-cvs
mailing list