From 150897e17e210ed2cc45bc95c7bc998cbadb7e27 Mon Sep 17 00:00:00 2001 From: Ivan Mogilko Date: Sat, 11 May 2019 16:44:16 +0300 Subject: [PATCH] Engine: fixed typo in GetCmdLinePathInASCII() --- Common/util/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/util/path.cpp b/Common/util/path.cpp index fbba14dbf5e..767b73c9a72 100644 --- a/Common/util/path.cpp +++ b/Common/util/path.cpp @@ -212,7 +212,7 @@ String GetCmdLinePathInASCII(const char *arg, int arg_index) if (wargv == nullptr) return ""; String path; - if (wargc <= arg_index) + if (arg_index <= wargc) path = WidePathNameToAnsi(wargv[arg_index]); LocalFree(wargv); return path;