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
90173ce4
Commit
90173ce4
authored
Aug 19, 2016
by
Keno Fischer
Committed by
Alexandre Julliard
Aug 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Tolerate null handle in DeregisterWait.
Signed-off-by:
Keno Fischer
<
keno@juliacomputing.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
710a58da
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
thread.c
dlls/kernel32/tests/thread.c
+4
-0
threadpool.c
dlls/ntdll/threadpool.c
+3
-0
No files found.
dlls/kernel32/tests/thread.c
View file @
90173ce4
...
...
@@ -1245,6 +1245,10 @@ static void test_RegisterWaitForSingleObject(void)
ret
=
pUnregisterWait
(
wait_handle
);
ok
(
ret
,
"UnregisterWait failed with error %d
\n
"
,
GetLastError
());
ret
=
pUnregisterWait
(
0
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"UnregisterWait failed with unexpected error %d
\n
"
,
GetLastError
());
}
static
DWORD
LS_main
;
...
...
dlls/ntdll/threadpool.c
View file @
90173ce4
...
...
@@ -637,6 +637,9 @@ NTSTATUS WINAPI RtlDeregisterWaitEx(HANDLE WaitHandle, HANDLE CompletionEvent)
TRACE
(
"(%p)
\n
"
,
WaitHandle
);
if
(
WaitHandle
==
NULL
)
return
STATUS_INVALID_HANDLE
;
NtSetEvent
(
wait_work_item
->
CancelEvent
,
NULL
);
if
(
wait_work_item
->
CallbackInProgress
)
{
...
...
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