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
50975c81
Commit
50975c81
authored
Mar 20, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Return the status from an async I/O APC call to the server.
parent
06db7052
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
sync.c
dlls/ntdll/sync.c
+2
-0
server_protocol.h
include/wine/server_protocol.h
+6
-1
protocol.def
server/protocol.def
+5
-0
trace.c
server/trace.c
+4
-0
No files found.
dlls/ntdll/sync.c
View file @
50975c81
...
...
@@ -682,6 +682,8 @@ static BOOL invoke_apc( const apc_call_t *call, apc_result_t *result )
case
APC_ASYNC_IO
:
NtCurrentTeb
()
->
num_async_io
--
;
call
->
async_io
.
func
(
call
->
async_io
.
user
,
call
->
async_io
.
sb
,
call
->
async_io
.
status
);
result
->
type
=
call
->
type
;
result
->
async_io
.
status
=
((
IO_STATUS_BLOCK
*
)
call
->
async_io
.
sb
)
->
u
.
Status
;
break
;
case
APC_VIRTUAL_ALLOC
:
result
->
type
=
call
->
type
;
...
...
include/wine/server_protocol.h
View file @
50975c81
...
...
@@ -338,6 +338,11 @@ typedef union
{
enum
apc_type
type
;
unsigned
int
status
;
}
async_io
;
struct
{
enum
apc_type
type
;
unsigned
int
status
;
void
*
addr
;
unsigned
long
size
;
}
virtual_alloc
;
...
...
@@ -4694,6 +4699,6 @@ union generic_reply
struct
allocate_locally_unique_id_reply
allocate_locally_unique_id_reply
;
};
#define SERVER_PROTOCOL_VERSION 28
1
#define SERVER_PROTOCOL_VERSION 28
2
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/protocol.def
View file @
50975c81
...
...
@@ -352,6 +352,11 @@ typedef union
enum apc_type type;
struct
{
enum apc_type type; /* APC_ASYNC_IO */
unsigned int status; /* new status of async operation */
} async_io;
struct
{
enum apc_type type; /* APC_VIRTUAL_ALLOC */
unsigned int status; /* status returned by call */
void *addr; /* resulting address */
...
...
server/trace.c
View file @
50975c81
...
...
@@ -179,6 +179,10 @@ static void dump_apc_result( const apc_result_t *result )
{
case
APC_NONE
:
break
;
case
APC_ASYNC_IO
:
fprintf
(
stderr
,
"APC_ASYNC_IO,status=%s"
,
get_status_name
(
result
->
async_io
.
status
)
);
break
;
case
APC_VIRTUAL_ALLOC
:
fprintf
(
stderr
,
"APC_VIRTUAL_ALLOC,status=%s,addr=%p,size=%lu"
,
get_status_name
(
result
->
virtual_alloc
.
status
),
...
...
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