Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c71da19d
Commit
c71da19d
authored
Jul 13, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlActivateActivationContextEx().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c6fea822
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
actctx.c
dlls/ntdll/actctx.c
+11
-2
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-1
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/ntdll/actctx.c
View file @
c71da19d
...
...
@@ -5157,15 +5157,24 @@ NTSTATUS WINAPI RtlZombifyActivationContext( HANDLE handle )
*/
NTSTATUS
WINAPI
RtlActivateActivationContext
(
ULONG
unknown
,
HANDLE
handle
,
PULONG_PTR
cookie
)
{
return
RtlActivateActivationContextEx
(
0
,
NtCurrentTeb
(),
handle
,
cookie
);
}
/******************************************************************
* RtlActivateActivationContextEx (NTDLL.@)
*/
NTSTATUS
WINAPI
RtlActivateActivationContextEx
(
ULONG
flags
,
TEB
*
teb
,
HANDLE
handle
,
ULONG_PTR
*
cookie
)
{
RTL_ACTIVATION_CONTEXT_STACK_FRAME
*
frame
;
if
(
!
(
frame
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
sizeof
(
*
frame
)
)))
return
STATUS_NO_MEMORY
;
frame
->
Previous
=
NtCurrentTeb
()
->
ActivationContextStack
.
ActiveFrame
;
frame
->
Previous
=
teb
->
ActivationContextStack
.
ActiveFrame
;
frame
->
ActivationContext
=
handle
;
frame
->
Flags
=
0
;
NtCurrentTeb
()
->
ActivationContextStack
.
ActiveFrame
=
frame
;
teb
->
ActivationContextStack
.
ActiveFrame
=
frame
;
RtlAddRefActivationContext
(
handle
);
*
cookie
=
(
ULONG_PTR
)
frame
;
...
...
dlls/ntdll/ntdll.spec
View file @
c71da19d
...
...
@@ -446,7 +446,7 @@
@ stdcall RtlAcquireSRWLockExclusive(ptr)
@ stdcall RtlAcquireSRWLockShared(ptr)
@ stdcall RtlActivateActivationContext(long ptr ptr)
@ st
ub RtlActivateActivationContextEx
@ st
dcall RtlActivateActivationContextEx(long ptr ptr ptr)
@ stub RtlActivateActivationContextUnsafeFast
@ stdcall RtlAddAccessAllowedAce(ptr long long ptr)
@ stdcall RtlAddAccessAllowedAceEx(ptr long long long ptr)
...
...
include/winternl.h
View file @
c71da19d
...
...
@@ -2944,6 +2944,7 @@ NTSYSAPI BYTE WINAPI RtlAcquireResourceShared(LPRTL_RWLOCK,BYTE);
NTSYSAPI
void
WINAPI
RtlAcquireSRWLockExclusive
(
RTL_SRWLOCK
*
);
NTSYSAPI
void
WINAPI
RtlAcquireSRWLockShared
(
RTL_SRWLOCK
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlActivateActivationContext
(
DWORD
,
HANDLE
,
ULONG_PTR
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlActivateActivationContextEx
(
ULONG
,
TEB
*
,
HANDLE
,
ULONG_PTR
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlAddAce
(
PACL
,
DWORD
,
DWORD
,
PACE_HEADER
,
DWORD
);
NTSYSAPI
NTSTATUS
WINAPI
RtlAddAccessAllowedAce
(
PACL
,
DWORD
,
DWORD
,
PSID
);
NTSYSAPI
NTSTATUS
WINAPI
RtlAddAccessAllowedAceEx
(
PACL
,
DWORD
,
DWORD
,
DWORD
,
PSID
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment