freerdp-utils: fix unicode conversion

This commit is contained in:
Marc-André Moreau 2012-10-09 11:24:33 -04:00
parent 26580c9fbb
commit 7f00570276
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}