diff --git a/src/base/system.cpp b/src/base/system.cpp index 5906e4fad..21f86a050 100644 --- a/src/base/system.cpp +++ b/src/base/system.cpp @@ -4015,6 +4015,7 @@ void cmdline_fix(int *argc, const char ***argv) int wide_argc = 0; WCHAR **wide_argv = CommandLineToArgvW(GetCommandLineW(), &wide_argc); dbg_assert(wide_argv != NULL, "CommandLineToArgvW failure"); + dbg_assert(wide_argc > 0, "Invalid argc value"); int total_size = 0;