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
ef2471ec
Commit
ef2471ec
authored
Sep 30, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement NtRemoveIoCompletionEx().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
248d0ee3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-0
sync.c
dlls/ntdll/sync.c
+48
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
ef2471ec
...
...
@@ -308,6 +308,7 @@
@ stub NtReleaseProcessMutant
@ stdcall NtReleaseSemaphore(long long ptr)
@ stdcall NtRemoveIoCompletion(ptr ptr ptr ptr ptr)
@ stdcall NtRemoveIoCompletionEx(ptr ptr long ptr ptr long)
# @ stub NtRemoveProcessDebug
@ stdcall NtRenameKey(long ptr)
@ stdcall NtReplaceKey(ptr long ptr)
...
...
@@ -1243,6 +1244,7 @@
@ stub ZwReleaseProcessMutant
@ stdcall -private ZwReleaseSemaphore(long long ptr) NtReleaseSemaphore
@ stdcall -private ZwRemoveIoCompletion(ptr ptr ptr ptr ptr) NtRemoveIoCompletion
@ stdcall -private ZwRemoveIoCompletionEx(ptr ptr long ptr ptr long) NtRemoveIoCompletionEx
# @ stub ZwRemoveProcessDebug
@ stdcall -private ZwRenameKey(long ptr) NtRenameKey
@ stdcall -private ZwReplaceKey(ptr long ptr) NtReplaceKey
...
...
dlls/ntdll/sync.c
View file @
ef2471ec
...
...
@@ -1334,6 +1334,54 @@ NTSTATUS WINAPI NtRemoveIoCompletion( HANDLE CompletionPort, PULONG_PTR Completi
}
/******************************************************************
* NtRemoveIoCompletionEx (NTDLL.@)
* ZwRemoveIoCompletionEx (NTDLL.@)
*/
NTSTATUS
WINAPI
NtRemoveIoCompletionEx
(
HANDLE
port
,
FILE_IO_COMPLETION_INFORMATION
*
info
,
ULONG
count
,
ULONG
*
written
,
LARGE_INTEGER
*
timeout
,
BOOLEAN
alertable
)
{
NTSTATUS
ret
;
ULONG
i
=
0
;
TRACE
(
"%p %p %u %p %p %u
\n
"
,
port
,
info
,
count
,
written
,
timeout
,
alertable
);
for
(;;)
{
for
(;;)
{
SERVER_START_REQ
(
remove_completion
)
{
req
->
handle
=
wine_server_obj_handle
(
port
);
if
(
!
(
ret
=
wine_server_call
(
req
)))
{
info
[
i
].
CompletionKey
=
reply
->
ckey
;
info
[
i
].
CompletionValue
=
reply
->
cvalue
;
info
[
i
].
IoStatusBlock
.
Information
=
reply
->
information
;
info
[
i
].
IoStatusBlock
.
u
.
Status
=
reply
->
status
;
}
}
SERVER_END_REQ
;
if
(
ret
!=
STATUS_SUCCESS
)
break
;
if
(
i
++
>=
count
)
break
;
}
if
(
i
&&
ret
==
STATUS_PENDING
)
{
ret
=
STATUS_SUCCESS
;
break
;
}
ret
=
NtWaitForSingleObject
(
port
,
alertable
,
timeout
);
if
(
ret
!=
WAIT_OBJECT_0
)
break
;
}
*
written
=
i
?
i
:
1
;
return
ret
;
}
/******************************************************************
* NtOpenIoCompletion (NTDLL.@)
* ZwOpenIoCompletion (NTDLL.@)
*
...
...
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