Fixing incorrect buffer in MultiByteToWideChar call in wc2mb
This commit is contained in:
parent
942c6a4b48
commit
6d625a11e0
@ -280,7 +280,7 @@ namespace nana
|
|||||||
if(chars > 1)
|
if(chars > 1)
|
||||||
{
|
{
|
||||||
wcstr.resize(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
|
#else
|
||||||
locale_initializer::init();
|
locale_initializer::init();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user