Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
95e2d05e
Commit
95e2d05e
authored
Jun 06, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement NtContinue() in the Unix library.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e561ce4b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
3 deletions
+26
-3
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-2
thread.c
dlls/ntdll/thread.c
+9
-0
loader.c
dlls/ntdll/unix/loader.c
+1
-0
thread.c
dlls/ntdll/unix/thread.c
+12
-0
unixlib.h
dlls/ntdll/unixlib.h
+2
-1
No files found.
dlls/ntdll/ntdll.spec
View file @
95e2d05e
...
...
@@ -157,7 +157,7 @@
@ stdcall NtCompleteConnectPort(ptr)
# @ stub NtCompressKey
@ stdcall NtConnectPort(ptr ptr ptr ptr ptr ptr ptr ptr)
@ st
ub NtContinue
@ st
dcall NtContinue(ptr long)
# @ stub NtCreateDebugObject
@ stdcall NtCreateDirectoryObject(ptr long ptr)
@ stdcall NtCreateEvent(ptr long ptr long long)
...
...
@@ -1145,7 +1145,7 @@
@ stdcall -private ZwCompleteConnectPort(ptr) NtCompleteConnectPort
# @ stub ZwCompressKey
@ stdcall -private ZwConnectPort(ptr ptr ptr ptr ptr ptr ptr ptr) NtConnectPort
@ st
ub Zw
Continue
@ st
dcall -private ZwContinue(ptr long) Nt
Continue
# @ stub ZwCreateDebugObject
@ stdcall -private ZwCreateDirectoryObject(ptr long ptr) NtCreateDirectoryObject
@ stdcall -private ZwCreateEvent(ptr long ptr long long) NtCreateEvent
...
...
dlls/ntdll/thread.c
View file @
95e2d05e
...
...
@@ -603,6 +603,15 @@ NTSTATUS get_thread_context( HANDLE handle, context_t *context, unsigned int fla
/***********************************************************************
* NtContinue (NTDLL.@)
*/
NTSTATUS
WINAPI
NtContinue
(
CONTEXT
*
context
,
BOOLEAN
alertable
)
{
return
unix_funcs
->
NtContinue
(
context
,
alertable
);
}
/***********************************************************************
* NtSetContextThread (NTDLL.@)
* ZwSetContextThread (NTDLL.@)
*/
...
...
dlls/ntdll/unix/loader.c
View file @
95e2d05e
...
...
@@ -988,6 +988,7 @@ static struct unix_funcs unix_funcs =
NtCancelTimer
,
NtClearEvent
,
NtClose
,
NtContinue
,
NtCreateEvent
,
NtCreateKeyedEvent
,
NtCreateMutant
,
...
...
dlls/ntdll/unix/thread.c
View file @
95e2d05e
...
...
@@ -471,6 +471,18 @@ NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL
/***********************************************************************
* NtContinue (NTDLL.@)
*/
NTSTATUS
WINAPI
NtContinue
(
CONTEXT
*
context
,
BOOLEAN
alertable
)
{
static
const
LARGE_INTEGER
zero_timeout
;
if
(
alertable
)
server_wait
(
NULL
,
0
,
SELECT_INTERRUPTIBLE
|
SELECT_ALERTABLE
,
&
zero_timeout
);
return
NtSetContextThread
(
GetCurrentThread
(),
context
);
}
/***********************************************************************
* set_thread_context
*/
NTSTATUS
set_thread_context
(
HANDLE
handle
,
const
context_t
*
context
,
BOOL
*
self
)
...
...
dlls/ntdll/unixlib.h
View file @
95e2d05e
...
...
@@ -28,7 +28,7 @@ struct ldt_copy;
struct
msghdr
;
/* increment this when you change the function table */
#define NTDLL_UNIXLIB_VERSION 3
1
#define NTDLL_UNIXLIB_VERSION 3
2
struct
unix_funcs
{
...
...
@@ -39,6 +39,7 @@ struct unix_funcs
NTSTATUS
(
WINAPI
*
NtCancelTimer
)(
HANDLE
handle
,
BOOLEAN
*
state
);
NTSTATUS
(
WINAPI
*
NtClearEvent
)(
HANDLE
handle
);
NTSTATUS
(
WINAPI
*
NtClose
)(
HANDLE
handle
);
NTSTATUS
(
WINAPI
*
NtContinue
)(
CONTEXT
*
context
,
BOOLEAN
alertable
);
NTSTATUS
(
WINAPI
*
NtCreateEvent
)(
HANDLE
*
handle
,
ACCESS_MASK
access
,
const
OBJECT_ATTRIBUTES
*
attr
,
EVENT_TYPE
type
,
BOOLEAN
state
);
NTSTATUS
(
WINAPI
*
NtCreateKeyedEvent
)(
HANDLE
*
handle
,
ACCESS_MASK
access
,
...
...
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