xrdp_orders_rail: fix resulting unicode length

This commit is contained in:
speidy 2017-03-18 09:39:43 +02:00 committed by metalefty
parent 22f0b05b03
commit 1c70e4915f
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ xrdp_orders_get_unicode_bytes(const char *text)
else
{
/* calculate the number of bytes of the resulting null-terminated wide-string */
num_chars = (num_chars + 1) * sizeof(twchar);
num_chars = (num_chars + 1) * 2;
}
return num_chars;