branch update for HEAD-2003050101
[reactos.git] / lib / ntdll / rtl / exception.c
index f56caac..a68f50a 100644 (file)
 
 /* FUNCTIONS ***************************************************************/
 
+VOID STDCALL
+RtlBaseProcessStart(PTHREAD_START_ROUTINE StartAddress,
+  PVOID Parameter);
+
+__declspec(dllexport)
+PRTL_BASE_PROCESS_START_ROUTINE RtlBaseProcessStartRoutine = RtlBaseProcessStart;
+
 ULONG
 RtlpDispatchException(IN PEXCEPTION_RECORD  ExceptionRecord,
        IN PCONTEXT  Context);
@@ -51,7 +58,18 @@ KiUserExceptionDispatcher(PEXCEPTION_RECORD ExceptionRecord,
 VOID STDCALL
 RtlRaiseException(PEXCEPTION_RECORD ExceptionRecord)
 {
-       DbgPrint("RtlRaiseException()");
+  DPRINT("RtlRaiseException()\n");
 }
 
+VOID STDCALL
+RtlBaseProcessStart(PTHREAD_START_ROUTINE StartAddress,
+  PVOID Parameter)
+{
+  NTSTATUS ExitStatus = STATUS_SUCCESS;
+
+  ExitStatus = (NTSTATUS) (StartAddress)(Parameter);
+
+  NtTerminateProcess(NtCurrentProcess(), ExitStatus);
+ }
+
 /* EOF */