Skip to content

Commit

Permalink
fix: case-sensitive command line
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromagician committed Aug 24, 2022
1 parent 2fedfdd commit 93dffa0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file modified Bin/MessageBox.exe
Binary file not shown.
4 changes: 3 additions & 1 deletion CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ int CommandLine::ParseCommandLine(int _argc, _TCHAR* _pArgv[], int& _correctPara
for (int i = 1; i < _argc; i++) {
bool unknown = true;
for (unsigned int a = 0; a < mArguments.size(); a++) {
if (find(mArguments[a].text.begin(), mArguments[a].text.end(), Conversion::TrimWhiteChar(_pArgv[i])) != mArguments[a].text.end()) {
wstring tmpCommand = Conversion::ToLower(Conversion::TrimWhiteChar(_pArgv[i]));

if (find(mArguments[a].text.begin(), mArguments[a].text.end(), tmpCommand) != mArguments[a].text.end()) {
if (mArguments[a].type == _STRING) {
i++;
if (i >= _argc) {
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define VERSION_MAJOR 0
#define VERSION_MINOR 5
#define VERSION_PATCH 8
#define VERSION_PATCH 9
#define VERSION_REVISION 0

#define VER_COMPANYNAME_STR "Pedro"
Expand Down

0 comments on commit 93dffa0

Please sign in to comment.