diff --git a/win32/Dir.c b/win32/Dir.c index 02820ac..d80dbbc 100644 --- a/win32/Dir.c +++ b/win32/Dir.c @@ -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); diff --git a/win32/Stat.c b/win32/Stat.c index 5d868b8..4c6b767 100644 --- a/win32/Stat.c +++ b/win32/Stat.c @@ -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);