1
0
mirror of synced 2025-02-01 12:17:55 +01:00

Merge pull request #24 from Nezarn/argfix

Try to fix games with additional cmdline
This commit is contained in:
Reaver 2019-03-31 01:02:22 +02:00 committed by GitHub
commit 35f76a1dda

View File

@ -175,7 +175,7 @@ int main(int argc, char *argv[])
} }
FilePEFile = getPEFileInformation(argv[2]); FilePEFile = getPEFileInformation(argv[2]);
if (argc == 3) if (argc == 4)
{ {
char bb[256]; char bb[256];
sprintf(bb, "%s %s", argv[2], argv[3]); sprintf(bb, "%s %s", argv[2], argv[3]);
@ -196,7 +196,7 @@ int main(int argc, char *argv[])
return 1; return 1;
} }
} }
else if (argc == 2) else if (argc == 3)
{ {
if (!CreateProcess(argv[2], // No module name (use command line). if (!CreateProcess(argv[2], // No module name (use command line).
"", // Command line. "", // Command line.