X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59af032ab6816a5cefb907a9f12c6b766a71af7c..508b6523350b4b1c4b2518b6c8c69e5d161f26c5:/src/msw/ole/oleutils.cpp diff --git a/src/msw/ole/oleutils.cpp b/src/msw/ole/oleutils.cpp index e23617df25..59f387426c 100644 --- a/src/msw/ole/oleutils.cpp +++ b/src/msw/ole/oleutils.cpp @@ -87,8 +87,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();