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
097685aa
Commit
097685aa
authored
Sep 12, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl: Report separately whether an IRP was marked pending.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
484b78bd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
7 deletions
+16
-7
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+5
-0
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+1
-2
server_protocol.h
include/wine/server_protocol.h
+3
-1
device.c
server/device.c
+1
-1
protocol.def
server/protocol.def
+1
-0
request.h
server/request.h
+4
-3
trace.c
server/trace.c
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
097685aa
...
...
@@ -949,11 +949,16 @@ NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event )
out_buff
=
NULL
;
/* do not transfer back input buffer */
req
->
prev
=
wine_server_obj_handle
(
context
.
irp_data
->
handle
);
req
->
pending
=
irp
->
PendingReturned
;
req
->
iosb_status
=
irp
->
IoStatus
.
u
.
Status
;
req
->
result
=
irp
->
IoStatus
.
Information
;
if
(
!
NT_ERROR
(
irp
->
IoStatus
.
u
.
Status
)
&&
out_buff
)
wine_server_add_data
(
req
,
out_buff
,
irp
->
IoStatus
.
Information
);
}
else
{
req
->
pending
=
1
;
}
}
else
{
...
...
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
097685aa
...
...
@@ -882,8 +882,7 @@ static void do_return_status(ULONG ioctl, struct return_status_params *params)
}
else
{
todo_wine_if
(
params
->
ret_status
!=
STATUS_PENDING
)
ok
(
!
ret
,
"got %#x
\n
"
,
ret
);
ok
(
!
ret
,
"got %#x
\n
"
,
ret
);
}
if
(
!
ret
)
{
...
...
include/wine/server_protocol.h
View file @
097685aa
...
...
@@ -4801,9 +4801,11 @@ struct get_next_device_request_request
obj_handle_t
prev
;
unsigned
int
status
;
client_ptr_t
user_ptr
;
int
pending
;
unsigned
int
iosb_status
;
data_size_t
result
;
/* VARARG(data,bytes); */
char
__pad_44
[
4
];
};
struct
get_next_device_request_reply
{
...
...
@@ -6255,7 +6257,7 @@ union generic_reply
/* ### protocol_version begin ### */
#define SERVER_PROTOCOL_VERSION 72
8
#define SERVER_PROTOCOL_VERSION 72
9
/* ### protocol_version end ### */
...
...
server/device.c
View file @
097685aa
...
...
@@ -954,7 +954,7 @@ DECL_HANDLER(get_next_device_request)
if
(
irp
->
async
)
{
if
(
req
->
status
==
STATUS_PENDING
)
if
(
req
->
pending
)
set_async_pending
(
irp
->
async
);
async_set_initial_status
(
irp
->
async
,
req
->
status
);
...
...
server/protocol.def
View file @
097685aa
...
...
@@ -3368,6 +3368,7 @@ struct handle_info
obj_handle_t prev; /* handle to the previous irp */
unsigned int status; /* status of the previous irp */
client_ptr_t user_ptr; /* user pointer of the previous irp */
int pending; /* was the previous irp marked pending? */
unsigned int iosb_status; /* IOSB status of the previous irp */
data_size_t result; /* IOSB result of the previous irp */
VARARG(data,bytes); /* output data of the previous irp */
...
...
server/request.h
View file @
097685aa
...
...
@@ -2053,9 +2053,10 @@ C_ASSERT( FIELD_OFFSET(struct get_next_device_request_request, manager) == 12 );
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_request
,
prev
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_request
,
status
)
==
20
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_request
,
user_ptr
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_request
,
iosb_status
)
==
32
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_request
,
result
)
==
36
);
C_ASSERT
(
sizeof
(
struct
get_next_device_request_request
)
==
40
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_request
,
pending
)
==
32
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_request
,
iosb_status
)
==
36
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_request
,
result
)
==
40
);
C_ASSERT
(
sizeof
(
struct
get_next_device_request_request
)
==
48
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_reply
,
params
)
==
8
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_reply
,
next
)
==
40
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_next_device_request_reply
,
client_tid
)
==
44
);
...
...
server/trace.c
View file @
097685aa
...
...
@@ -4177,6 +4177,7 @@ static void dump_get_next_device_request_request( const struct get_next_device_r
fprintf
(
stderr
,
", prev=%04x"
,
req
->
prev
);
fprintf
(
stderr
,
", status=%08x"
,
req
->
status
);
dump_uint64
(
", user_ptr="
,
&
req
->
user_ptr
);
fprintf
(
stderr
,
", pending=%d"
,
req
->
pending
);
fprintf
(
stderr
,
", iosb_status=%08x"
,
req
->
iosb_status
);
fprintf
(
stderr
,
", result=%u"
,
req
->
result
);
dump_varargs_bytes
(
", data="
,
cur_size
);
...
...
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