Bugfix: don't call ExitProcess() before SYSLEVEL_Init().
diff --git a/scheduler/process.c b/scheduler/process.c index 1e0bb8a..b5f3b4e 100644 --- a/scheduler/process.c +++ b/scheduler/process.c
@@ -23,6 +23,7 @@ #include "pe_image.h" #include "task.h" #include "server.h" +#include "options.h" #include "callback.h" #include "debugtools.h" @@ -482,7 +483,7 @@ } /* If requested, add entry point breakpoint */ - if ( TASK_AddTaskEntryBreakpoint ) + if ( Options.debug && TASK_AddTaskEntryBreakpoint ) TASK_AddTaskEntryBreakpoint( pdb->task ); /* Now call the entry point */