This commit is contained in:
@@ -18,7 +18,7 @@ struct CgeFsDir {
|
||||
static int utf8ToWchar(const char *utf8, wchar_t *out, int size) {
|
||||
int len;
|
||||
|
||||
if (!utf8 || !out || size <= 0)
|
||||
if (size <= 0)
|
||||
return 0;
|
||||
|
||||
len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, out, size);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
static int utf8ToWchar(const char *utf8, wchar_t *out, int size) {
|
||||
int len;
|
||||
|
||||
if (!utf8 || !out || size <= 0)
|
||||
if (size <= 0)
|
||||
return 0;
|
||||
|
||||
len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, out, size);
|
||||
|
||||
Reference in New Issue
Block a user