_start(): Use exit() instead of ExitToShell()

This commit is contained in:
Wolfgang Thaller 2014-09-29 21:43:48 +02:00
parent e6df3abfe0
commit 3911cb2fde

View File

@ -18,6 +18,7 @@
*/ */
#include <stdint.h> #include <stdint.h>
#include <stdlib.h>
#include <Processes.h> #include <Processes.h>
#include <Sound.h> #include <Sound.h>
@ -113,9 +114,10 @@ void _start()
} }
} }
int result;
{ {
char *argv[2] = { "./a.out", NULL }; char *argv[2] = { "./a.out", NULL };
main(1, argv); result = main(1, argv);
} }
ExitToShell(); exit(result);
} }