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
6b16ead6
Commit
6b16ead6
authored
Sep 16, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: The async handle passed to set_async_direct_result() cannot be NULL.
parent
da8defe5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
sync.c
dlls/ntdll/unix/sync.c
+5
-4
unix_private.h
dlls/ntdll/unix/unix_private.h
+1
-1
No files found.
dlls/ntdll/unix/sync.c
View file @
6b16ead6
...
@@ -2533,21 +2533,22 @@ NTSTATUS WINAPI NtWaitForAlertByThreadId( const void *address, const LARGE_INTEG
...
@@ -2533,21 +2533,22 @@ NTSTATUS WINAPI NtWaitForAlertByThreadId( const void *address, const LARGE_INTEG
/* Notify direct completion of async and close the wait handle if it is no longer needed.
/* Notify direct completion of async and close the wait handle if it is no longer needed.
* This function is a no-op (returns status as-is) if the supplied handle is NULL.
* This function is a no-op (returns status as-is) if the supplied handle is NULL.
*/
*/
void
set_async_direct_result
(
HANDLE
*
optional
_handle
,
NTSTATUS
status
,
ULONG_PTR
information
,
BOOL
mark_pending
)
void
set_async_direct_result
(
HANDLE
*
async
_handle
,
NTSTATUS
status
,
ULONG_PTR
information
,
BOOL
mark_pending
)
{
{
NTSTATUS
ret
;
NTSTATUS
ret
;
if
(
!*
optional_handle
)
return
;
/* if we got STATUS_ALERTED, we must have a valid async handle */
assert
(
*
async_handle
);
SERVER_START_REQ
(
set_async_direct_result
)
SERVER_START_REQ
(
set_async_direct_result
)
{
{
req
->
handle
=
wine_server_obj_handle
(
*
optional
_handle
);
req
->
handle
=
wine_server_obj_handle
(
*
async
_handle
);
req
->
status
=
status
;
req
->
status
=
status
;
req
->
information
=
information
;
req
->
information
=
information
;
req
->
mark_pending
=
mark_pending
;
req
->
mark_pending
=
mark_pending
;
ret
=
wine_server_call
(
req
);
ret
=
wine_server_call
(
req
);
if
(
ret
==
STATUS_SUCCESS
)
if
(
ret
==
STATUS_SUCCESS
)
*
optional
_handle
=
wine_server_ptr_handle
(
reply
->
handle
);
*
async
_handle
=
wine_server_ptr_handle
(
reply
->
handle
);
}
}
SERVER_END_REQ
;
SERVER_END_REQ
;
...
...
dlls/ntdll/unix/unix_private.h
View file @
6b16ead6
...
@@ -278,7 +278,7 @@ extern NTSTATUS get_device_info( int fd, struct _FILE_FS_DEVICE_INFORMATION *inf
...
@@ -278,7 +278,7 @@ extern NTSTATUS get_device_info( int fd, struct _FILE_FS_DEVICE_INFORMATION *inf
extern
void
init_files
(
void
)
DECLSPEC_HIDDEN
;
extern
void
init_files
(
void
)
DECLSPEC_HIDDEN
;
extern
void
init_cpu_info
(
void
)
DECLSPEC_HIDDEN
;
extern
void
init_cpu_info
(
void
)
DECLSPEC_HIDDEN
;
extern
void
add_completion
(
HANDLE
handle
,
ULONG_PTR
value
,
NTSTATUS
status
,
ULONG
info
,
BOOL
async
)
DECLSPEC_HIDDEN
;
extern
void
add_completion
(
HANDLE
handle
,
ULONG_PTR
value
,
NTSTATUS
status
,
ULONG
info
,
BOOL
async
)
DECLSPEC_HIDDEN
;
extern
void
set_async_direct_result
(
HANDLE
*
optional_handle
,
NTSTATUS
status
,
ULONG_PTR
information
,
BOOL
mark_pending
)
;
extern
void
set_async_direct_result
(
HANDLE
*
async_handle
,
NTSTATUS
status
,
ULONG_PTR
information
,
BOOL
mark_pending
)
DECLSPEC_HIDDEN
;
extern
void
dbg_init
(
void
)
DECLSPEC_HIDDEN
;
extern
void
dbg_init
(
void
)
DECLSPEC_HIDDEN
;
...
...
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