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
75c9da68
Commit
75c9da68
authored
Aug 24, 2015
by
Michael Müller
Committed by
Alexandre Julliard
Aug 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use helper function for NtWaitForMultipleObjects and NtWaitForSingleObject.
parent
c948e841
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
sync.c
dlls/ntdll/sync.c
+15
-7
No files found.
dlls/ntdll/sync.c
View file @
75c9da68
...
...
@@ -990,12 +990,9 @@ NTSTATUS WINAPI NtSetTimerResolution(IN ULONG resolution,
/* wait operations */
/******************************************************************
* NtWaitForMultipleObjects (NTDLL.@)
*/
NTSTATUS
WINAPI
NtWaitForMultipleObjects
(
DWORD
count
,
const
HANDLE
*
handles
,
BOOLEAN
wait_any
,
BOOLEAN
alertable
,
const
LARGE_INTEGER
*
timeout
)
static
NTSTATUS
wait_objects
(
DWORD
count
,
const
HANDLE
*
handles
,
BOOLEAN
wait_any
,
BOOLEAN
alertable
,
const
LARGE_INTEGER
*
timeout
)
{
select_op_t
select_op
;
UINT
i
,
flags
=
SELECT_INTERRUPTIBLE
;
...
...
@@ -1010,11 +1007,22 @@ NTSTATUS WINAPI NtWaitForMultipleObjects( DWORD count, const HANDLE *handles,
/******************************************************************
* NtWaitForMultipleObjects (NTDLL.@)
*/
NTSTATUS
WINAPI
NtWaitForMultipleObjects
(
DWORD
count
,
const
HANDLE
*
handles
,
BOOLEAN
wait_any
,
BOOLEAN
alertable
,
const
LARGE_INTEGER
*
timeout
)
{
return
wait_objects
(
count
,
handles
,
wait_any
,
alertable
,
timeout
);
}
/******************************************************************
* NtWaitForSingleObject (NTDLL.@)
*/
NTSTATUS
WINAPI
NtWaitForSingleObject
(
HANDLE
handle
,
BOOLEAN
alertable
,
const
LARGE_INTEGER
*
timeout
)
{
return
NtWaitForMultipleO
bjects
(
1
,
&
handle
,
FALSE
,
alertable
,
timeout
);
return
wait_o
bjects
(
1
,
&
handle
,
FALSE
,
alertable
,
timeout
);
}
...
...
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