Skip to content

Commit

Permalink
Merge pull request #38 from orbitersim/37-orbiter_ng_command_line
Browse files Browse the repository at this point in the history
#37: use _execv in Orbiter_ng wrapper to pass command line arguments …
  • Loading branch information
mschweiger authored Aug 3, 2021
2 parents 5e5d8c4 + e31ffb2 commit 0326e4d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Src/Orbiter_ng/Orbiter_ng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

INT WINAPI WinMain (HINSTANCE hInstance, HINSTANCE, LPSTR strCmdLine, INT nCmdShow)
{
const char *cmd = "modules\\server\\orbiter.exe";
char *args[1] = {NULL};
_execl(cmd, cmd, NULL);
return 0;
const char *cmd = "Modules\\Server\\Orbiter.exe";
return _execv(cmd, __argv);
}

0 comments on commit 0326e4d

Please sign in to comment.