First attempt on SEH usage; currently this does not take an effect due to missing exception dispatcher

Tento commit je obsažen v:
2023-02-26 22:08:02 +01:00
rodič 2f1c5a22a5
revize 286fc76577

Zobrazit soubor

@@ -124,8 +124,16 @@ KeInitializeThread(IN PKPROCESS Process,
Thread->StackBase = Stack;
Thread->StackLimit = Stack - KERNEL_STACK_SIZE;
/* Initialize thread context */
KepInitializeThreadContext(Thread, SystemRoutine, StartRoutine, StartContext, Context);
__try
{
/* Initialize thread context */
KepInitializeThreadContext(Thread, SystemRoutine, StartRoutine, StartContext, Context);
}
__except(EXCEPTION_EXECUTE_HANDLER)
{
/* Failed to initialize thread context */
return STATUS_UNSUCCESSFUL;
}
/* Mark thread as initialized and run it */
Thread->State = Initialized;