Marcus Meissner : oleaut32: Fixed buffer size to MBtoWC.

Alexandre Julliard julliard at winehq.org
Thu Aug 25 13:00:12 CDT 2011


Module: wine
Branch: master
Commit: 9d7219dfb965036995bdb2cfdb01507f3dda0faf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9d7219dfb965036995bdb2cfdb01507f3dda0faf

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Thu Aug 25 10:03:50 2011 +0200

oleaut32: Fixed buffer size to MBtoWC.

---

 dlls/oleaut32/tests/vartest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index c52e3ce..7a6394a 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -348,7 +348,7 @@ static void test_var_call2( int line, HRESULT (WINAPI *func)(LPVARIANT,LPVARIANT
 static int strcmp_wa(const WCHAR *strw, const char *stra)
 {
     WCHAR buf[512];
-    MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf));
+    MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf)/sizeof(buf[0]));
     return lstrcmpW(strw, buf);
 }
 




More information about the wine-cvs mailing list