length passed to WideCharToMultiByte() was off by one in the last commit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-02-05 07:24:59 +00:00
parent 9b0956b277
commit 887f53ddf6

View File

@@ -96,8 +96,8 @@ WXDLLEXPORT wxString wxConvertStringFromOle(BSTR bStr)
#else
wxString str;
if ( !::WideCharToMultiByte(CP_ACP, 0 /* no flags */,
bStr, len + 1 /* include last NUL */,
wxStringBuffer(str, len), len,
bStr, len /* not necessary NUL-terminated */,
wxStringBuffer(str, len + 1), len + 1,
NULL, NULL /* no default char */) )
{
str.clear();