mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
[RTL]
- Enable the proper implementation of RtlActivateActivationContextUnsafeFast svn path=/trunk/; revision=52612
This commit is contained in:
parent
6ef48aa4b4
commit
bee9140898
1 changed files with 1 additions and 14 deletions
|
@ -2763,13 +2763,12 @@ FASTCALL
|
|||
RtlActivateActivationContextUnsafeFast(IN PRTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_EXTENDED Frame,
|
||||
IN PVOID Context)
|
||||
{
|
||||
#if NEW_NTDLL_LOADER
|
||||
RTL_ACTIVATION_CONTEXT_STACK_FRAME *ActiveFrame;
|
||||
|
||||
/* Get the curren active frame */
|
||||
ActiveFrame = NtCurrentTeb()->ActivationContextStackPointer->ActiveFrame;
|
||||
|
||||
DPRINT1("ActiveFrame %p, &Frame->Frame %p, Context %p\n", ActiveFrame, &Frame->Frame, Context);
|
||||
DPRINT("ActiveFrame %p, &Frame->Frame %p, Context %p\n", ActiveFrame, &Frame->Frame, Context);
|
||||
|
||||
/* Actually activate it */
|
||||
Frame->Frame.Previous = ActiveFrame;
|
||||
|
@ -2801,18 +2800,6 @@ RtlActivateActivationContextUnsafeFast(IN PRTL_CALLER_ALLOCATED_ACTIVATION_CONTE
|
|||
|
||||
/* Return pointer to the activation frame */
|
||||
return &Frame->Frame;
|
||||
#else
|
||||
|
||||
RTL_ACTIVATION_CONTEXT_STACK_FRAME *frame = &Frame->Frame;
|
||||
|
||||
frame->Previous = NtCurrentTeb()->ActivationContextStackPointer->ActiveFrame;
|
||||
frame->ActivationContext = Context;
|
||||
frame->Flags = 0;
|
||||
|
||||
NtCurrentTeb()->ActivationContextStackPointer->ActiveFrame = frame;
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
#endif
|
||||
}
|
||||
|
||||
PRTL_ACTIVATION_CONTEXT_STACK_FRAME
|
||||
|
|
Loading…
Reference in a new issue