Commit a06aeb0a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Memory error handling

parent 733a8325
...@@ -72,6 +72,7 @@ static inline char *FromWide (const wchar_t *wide) ...@@ -72,6 +72,7 @@ static inline char *FromWide (const wchar_t *wide)
char *out = (char *)malloc (len); char *out = (char *)malloc (len);
if (out)
WideCharToMultiByte (CP_UTF8, 0, wide, -1, out, len, NULL, NULL); WideCharToMultiByte (CP_UTF8, 0, wide, -1, out, len, NULL, NULL);
return out; return out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment