projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9292b22
)
Fixed rail_string_to_unicode_string size calculation.
author
Armin Novak
<armin.novak@thincast.com>
Wed, 14 Nov 2018 10:03:59 +0000
(11:03 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Wed, 14 Nov 2018 10:03:59 +0000
(11:03 +0100)
channels/rail/rail_common.c
patch
|
blob
|
history
diff --git
a/channels/rail/rail_common.c
b/channels/rail/rail_common.c
index
af88a96
..
ac0103f
100644
(file)
--- a/
channels/rail/rail_common.c
+++ b/
channels/rail/rail_common.c
@@
-62,7
+62,7
@@
BOOL rail_string_to_unicode_string(const char* string, RAIL_UNICODE_STRING* unic
if (!string || strlen(string) < 1)
return TRUE;
- length = ConvertToUnicode(CP_UTF8, 0, string, -1, &buffer, 0)
* 2
;
+ length = ConvertToUnicode(CP_UTF8, 0, string, -1, &buffer, 0);
if ((length < 0) || ((size_t)length * sizeof(WCHAR) > UINT16_MAX))
{