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

Memory error handling

parent 733a8325
......@@ -72,7 +72,8 @@ static inline char *FromWide (const wchar_t *wide)
char *out = (char *)malloc (len);
WideCharToMultiByte (CP_UTF8, 0, wide, -1, out, len, NULL, NULL);
if (out)
WideCharToMultiByte (CP_UTF8, 0, wide, -1, out, len, NULL, NULL);
return out;
}
#endif
......
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