xrdp_orders_rail: fix resulting unicode length
This commit is contained in:
parent
22f0b05b03
commit
1c70e4915f
@ -239,7 +239,7 @@ xrdp_orders_get_unicode_bytes(const char *text)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* calculate the number of bytes of the resulting null-terminated wide-string */
|
/* 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;
|
return num_chars;
|
||||||
|
Loading…
Reference in New Issue
Block a user