git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51557
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#else
wxString str;
if ( !::WideCharToMultiByte(CP_ACP, 0 /* no flags */,
#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();
NULL, NULL /* no default char */) )
{
str.clear();