commit
08c03ff478
@ -48,7 +48,7 @@ static WCHAR* mz_utf8z_to_widechar(const char* str)
|
|||||||
{
|
{
|
||||||
int reqChars = MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0);
|
int reqChars = MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0);
|
||||||
WCHAR* wStr = (WCHAR*)malloc(reqChars * sizeof(WCHAR));
|
WCHAR* wStr = (WCHAR*)malloc(reqChars * sizeof(WCHAR));
|
||||||
MultiByteToWideChar(CP_UTF8, 0, str, -1, wStr, sizeof(WCHAR) * reqChars);
|
MultiByteToWideChar(CP_UTF8, 0, str, -1, wStr, reqChars);
|
||||||
return wStr;
|
return wStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user