James Hawkins : mlang: Encode all the way to the NULL terminator.
Alexandre Julliard
julliard at winehq.org
Tue Jul 8 06:11:13 CDT 2008
Module: wine
Branch: master
Commit: 8b2bfbb778a6c8731b98c7c717e4bd82d52e4a56
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8b2bfbb778a6c8731b98c7c717e4bd82d52e4a56
Author: James Hawkins <jhawkins at codeweavers.com>
Date: Tue Jul 8 00:04:47 2008 -0500
mlang: Encode all the way to the NULL terminator.
---
dlls/mlang/tests/mlang.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mlang/tests/mlang.c b/dlls/mlang/tests/mlang.c
index 59774a1..81377ed 100644
--- a/dlls/mlang/tests/mlang.c
+++ b/dlls/mlang/tests/mlang.c
@@ -269,7 +269,7 @@ static BOOL check_convertible(IMultiLanguage2 *iML2, UINT from, UINT to)
static WCHAR strW[] = {'a','b','c',0};
- srcsz = -1;
+ srcsz = lstrlenW(strW) + 1;
destsz = MAX_PATH;
hr = IMultiLanguage2_ConvertStringFromUnicode(iML2, NULL, from, strW,
&srcsz, convert, &destsz);
More information about the wine-cvs
mailing list