diff --git a/Src/Orbiter_ng/Orbiter_ng.cpp b/Src/Orbiter_ng/Orbiter_ng.cpp index 67ff0b9c2..ea83007e0 100644 --- a/Src/Orbiter_ng/Orbiter_ng.cpp +++ b/Src/Orbiter_ng/Orbiter_ng.cpp @@ -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); } \ No newline at end of file