mlang: Encode all the way to the NULL terminator.

This commit is contained in:
James Hawkins 2008-07-08 00:04:47 -05:00 committed by Alexandre Julliard
parent 6e313864e8
commit 8b2bfbb778
1 changed files with 1 additions and 1 deletions

View File

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