First attempt on SEH usage; currently this does not take an effect due to missing exception dispatcher
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
2f1c5a22a5
commit
286fc76577
@ -124,8 +124,16 @@ KeInitializeThread(IN PKPROCESS Process,
|
|||||||
Thread->StackBase = Stack;
|
Thread->StackBase = Stack;
|
||||||
Thread->StackLimit = Stack - KERNEL_STACK_SIZE;
|
Thread->StackLimit = Stack - KERNEL_STACK_SIZE;
|
||||||
|
|
||||||
|
__try
|
||||||
|
{
|
||||||
/* Initialize thread context */
|
/* Initialize thread context */
|
||||||
KepInitializeThreadContext(Thread, SystemRoutine, StartRoutine, StartContext, 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 */
|
/* Mark thread as initialized and run it */
|
||||||
Thread->State = Initialized;
|
Thread->State = Initialized;
|
||||||
|
Loading…
Reference in New Issue
Block a user