Author: hbelusca
Date: Sun Mar 17 22:31:40 2013
New Revision: 58548
URL:
http://svn.reactos.org/svn/reactos?rev=58548&view=rev
Log:
[NDK-RTL]
The parameter of RtlAllocateActivationContextStack is of type PACTIVATION_CONTEXT_STACK*.
Modified:
trunk/reactos/dll/ntdll/ldr/ldrinit.c
trunk/reactos/include/asm/genincdata.c
trunk/reactos/include/ndk/rtlfuncs.h
trunk/reactos/lib/rtl/actctx.c
Modified: trunk/reactos/dll/ntdll/ldr/ldrinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/ldrinit.c?re…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/ldrinit.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/ldrinit.c [iso-8859-1] Sun Mar 17 22:31:40 2013
@@ -508,7 +508,7 @@
/* Allocate an Activation Context Stack */
DPRINT("ActivationContextStack %p\n",
NtCurrentTeb()->ActivationContextStackPointer);
- Status =
RtlAllocateActivationContextStack((PVOID*)&NtCurrentTeb()->ActivationContextStackPointer);
+ Status =
RtlAllocateActivationContextStack(&NtCurrentTeb()->ActivationContextStackPointer);
if (!NT_SUCCESS(Status))
{
DPRINT1("Warning: Unable to allocate ActivationContextStack\n");
@@ -1709,7 +1709,7 @@
}
/* Allocate an Activation Context Stack */
- Status = RtlAllocateActivationContextStack((PVOID
*)&Teb->ActivationContextStackPointer);
+ Status =
RtlAllocateActivationContextStack(&Teb->ActivationContextStackPointer);
if (!NT_SUCCESS(Status)) return Status;
// FIXME: Loader private heap is missing
Modified: trunk/reactos/include/asm/genincdata.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/asm/genincdata.c?r…
==============================================================================
--- trunk/reactos/include/asm/genincdata.c [iso-8859-1] (original)
+++ trunk/reactos/include/asm/genincdata.c [iso-8859-1] Sun Mar 17 22:31:40 2013
@@ -31,14 +31,14 @@
{ /* 32 bit 64 bit */
/* this must be the first field */
PVOID Parameter; /* 0x00 0x00 */
- struct _EXCEPTION_REGISTRATION_RECORD * ExceptionList; /* 0x04 0x08 */
+ PEXCEPTION_REGISTRATION_RECORD ExceptionList; /* 0x04 0x08 */
PVOID StackBase; /* 0x08 0x10 */
PVOID StackLimit; /* 0x0C 0x18 */
PVOID DeallocationStack; /* 0x10 0x20 */
CONTEXT Context; /* 0x14 0x28 */
ULONG GuaranteedStackBytes; /* 0x2E0 */
PVOID FlsData; /* 0x2E4 */
- PVOID ActivationContextStack; /* 0x2E8 */
+ PVOID /* PACTIVATION_CONTEXT_STACK */ ActivationContextStack; /* 0x2E8 */
} FIBER, *PFIBER;
typedef struct
Modified: trunk/reactos/include/ndk/rtlfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/rtlfuncs.h?rev…
==============================================================================
--- trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] Sun Mar 17 22:31:40 2013
@@ -3503,7 +3503,7 @@
NTSTATUS
NTAPI
RtlAllocateActivationContextStack(
- _In_ PVOID *Context
+ _In_ PACTIVATION_CONTEXT_STACK *Stack
);
NTSYSAPI
Modified: trunk/reactos/lib/rtl/actctx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/actctx.c?rev=58548…
==============================================================================
--- trunk/reactos/lib/rtl/actctx.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/actctx.c [iso-8859-1] Sun Mar 17 22:31:40 2013
@@ -2429,7 +2429,7 @@
VOID
NTAPI
-RtlFreeActivationContextStack(PACTIVATION_CONTEXT_STACK Stack)
+RtlFreeActivationContextStack(IN PACTIVATION_CONTEXT_STACK Stack)
{
PRTL_ACTIVATION_CONTEXT_STACK_FRAME ActiveFrame, PrevFrame;
@@ -2775,15 +2775,15 @@
NTSTATUS
NTAPI
-RtlAllocateActivationContextStack(IN PVOID *Context)
+RtlAllocateActivationContextStack(IN PACTIVATION_CONTEXT_STACK *Stack)
{
PACTIVATION_CONTEXT_STACK ContextStack;
/* Check if it's already allocated */
- if (*Context) return STATUS_SUCCESS;
+ if (*Stack) return STATUS_SUCCESS;
/* Allocate space for the context stack */
- ContextStack = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, sizeof
(ACTIVATION_CONTEXT_STACK) );
+ ContextStack = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY,
sizeof(ACTIVATION_CONTEXT_STACK));
if (!ContextStack)
{
return STATUS_NO_MEMORY;
@@ -2796,7 +2796,7 @@
ContextStack->NextCookieSequenceNumber = 1;
ContextStack->StackId = 1; //TODO: Timer-based
- *Context = ContextStack;
+ *Stack = ContextStack;
return STATUS_SUCCESS;
}