Fixing incorrect buffer in MultiByteToWideChar call in wc2mb

This commit is contained in:
dnso86 2019-08-30 14:27:49 +02:00 committed by GitHub
parent 942c6a4b48
commit 6d625a11e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,7 @@ namespace nana
if(chars > 1)
{
wcstr.resize(chars - 1);
::MultiByteToWideChar(CP_ACP, 0, s, -1, &wcstr[0], chars - 1);
::MultiByteToWideChar(CP_ACP, 0, s, -1, &wcstr[0], chars);
}
#else
locale_initializer::init();