Skip to content

Commit

Permalink
Engine: fixed typo in GetCmdLinePathInASCII()
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed May 11, 2019
1 parent 8c189f7 commit 150897e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/util/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 150897e

Please sign in to comment.