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
f30b7089
Commit
f30b7089
authored
Sep 22, 2010
by
Peter Oberndorfer
Committed by
Alexandre Julliard
Sep 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix WaitForMultipleObjectsEx for handles with lower 2 bits set.
parent
4f2afdd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
sync.c
dlls/kernel32/sync.c
+2
-5
sync.c
dlls/kernel32/tests/sync.c
+2
-2
No files found.
dlls/kernel32/sync.c
View file @
f30b7089
...
...
@@ -180,11 +180,8 @@ DWORD WINAPI WaitForMultipleObjectsEx( DWORD count, const HANDLE *handles,
*/
if
(
is_console_handle
(
hloc
[
i
]))
{
if
(
!
VerifyConsoleIoHandle
(
hloc
[
i
]))
{
return
FALSE
;
}
hloc
[
i
]
=
GetConsoleInputWaitHandle
();
if
(
VerifyConsoleIoHandle
(
hloc
[
i
]))
hloc
[
i
]
=
GetConsoleInputWaitHandle
();
}
}
...
...
dlls/kernel32/tests/sync.c
View file @
f30b7089
...
...
@@ -978,7 +978,7 @@ static void test_WaitForSingleObject(void)
SetLastError
(
0xdeadbeef
);
ret
=
WaitForSingleObject
(
modify_handle
(
invalid
,
3
),
0
);
todo_wine
ok
(
ret
==
WAIT_FAILED
,
"expected WAIT_FAILED, got %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_FAILED
,
"expected WAIT_FAILED, got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
/* valid handle with different values for lower 2 bits */
...
...
@@ -999,7 +999,7 @@ static void test_WaitForSingleObject(void)
SetLastError
(
0xdeadbeef
);
ret
=
WaitForSingleObject
(
modify_handle
(
nonsignaled
,
3
),
0
);
todo_wine
ok
(
ret
==
WAIT_TIMEOUT
,
"expected WAIT_TIMEOUT, got %d
\n
"
,
ret
);
ok
(
ret
==
WAIT_TIMEOUT
,
"expected WAIT_TIMEOUT, got %d
\n
"
,
ret
);
todo_wine
ok
(
GetLastError
()
==
0xdeadbeef
,
"expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
/* valid handle with different values for lower 2 bits */
...
...
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