[KERNEL32/NTDLL]: Fix definition of RtlCreateActivationContext (although the code...
authorAlex Ionescu <aionescu@gmail.com>
Fri, 13 Sep 2013 22:44:57 +0000 (22:44 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Fri, 13 Sep 2013 22:44:57 +0000 (22:44 +0000)
commit1a0744c854f14fd9945c15a60586ca8a92653bda
treeb19538ed1489b768c706410fc18f818519e76c62
parent6e8c79e64d65506fddc377c772d9b890b2fa1ef8
[KERNEL32/NTDLL]: Fix definition of RtlCreateActivationContext (although the code is still 100% incompatible with Windows, at least it won't destroy the stack anymore when Windows' kernel32.dll tries to call it). Take the Windows definition of ACTIVATION_CONTEXT and use it instead. Also do the Windows behavior of allocating an ACTIVATION_CONTEXT_WRAPPED structure (which has a magic header), and returning the internal ACTIVATION_CONTEXT (and then looking up the "WRAPPED" whenever we need to check the magic). Ran kernel32:actctx and no regressions seen. My hope is to get the Rtl* interfaces at least compatible enough to Kernel32 from Windows so that when using it in ROS, it doesn't immediately crash and burn, we'll see how far that goes. I don't want to rewrite 2500 lines of XML parsing.

svn path=/trunk/; revision=60086
reactos/dll/ntdll/def/ntdll.spec
reactos/dll/ntdll/ldr/ldrutils.c
reactos/dll/win32/kernel32/client/actctx.c
reactos/dll/win32/kernel32/wine/actctx.c
reactos/include/ndk/rtlfuncs.h
reactos/include/ndk/rtltypes.h
reactos/lib/rtl/actctx.c