Simplify checks
All checks were successful
CI / build-and-analyze (push) Successful in 1m17s

This commit is contained in:
2026-08-18 10:53:02 +03:00
parent 6d2796912b
commit dac684a8a0
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ struct CgeFsDir {
static int utf8ToWchar(const char *utf8, wchar_t *out, int size) { static int utf8ToWchar(const char *utf8, wchar_t *out, int size) {
int len; int len;
if (!utf8 || !out || size <= 0) if (size <= 0)
return 0; return 0;
len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, out, size); len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, out, size);

View File

@@ -5,7 +5,7 @@
static int utf8ToWchar(const char *utf8, wchar_t *out, int size) { static int utf8ToWchar(const char *utf8, wchar_t *out, int size) {
int len; int len;
if (!utf8 || !out || size <= 0) if (size <= 0)
return 0; return 0;
len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, out, size); len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, out, size);