*fixed a mistake.
This commit is contained in:
parent
50e22c7765
commit
db802a46d9
@ -709,7 +709,7 @@ static int _bytes_to_wchar(const char* sz, wchar_t** out, size_t size) {
|
|||||||
*out = (wchar_t*)malloc(sizeof(wchar_t) * result);
|
*out = (wchar_t*)malloc(sizeof(wchar_t) * result);
|
||||||
MultiByteToWideChar(CP_UTF8, 0, sz, -1, *out, result);
|
MultiByteToWideChar(CP_UTF8, 0, sz, -1, *out, result);
|
||||||
|
|
||||||
return true;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _bytes_to_wchar_ansi(const char* sz, wchar_t** out, size_t size) {
|
static int _bytes_to_wchar_ansi(const char* sz, wchar_t** out, size_t size) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user