freerdp-utils: fix unicode conversion
This commit is contained in:
parent
26580c9fbb
commit
7f00570276
@ -57,6 +57,7 @@ int freerdp_UnicodeToAsciiAlloc(const WCHAR* wstr, CHAR** str, int length)
|
||||
memset(*str, 0, (length * 2) + 1);
|
||||
|
||||
WideCharToMultiByte(CP_UTF8, 0, wstr, length, *str, length, NULL, NULL);
|
||||
(*str)[length] = 0;
|
||||
|
||||
return length;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user