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
dfc7132f
Commit
dfc7132f
authored
Aug 06, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Always set the IRP return size.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d99ecb07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+1
-1
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+2
-2
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
dfc7132f
...
...
@@ -438,9 +438,9 @@ static NTSTATUS WINAPI dispatch_irp_completion( DEVICE_OBJECT *device, IRP *irp,
{
req
->
handle
=
wine_server_obj_handle
(
irp_handle
);
req
->
status
=
irp
->
IoStatus
.
u
.
Status
;
req
->
size
=
irp
->
IoStatus
.
Information
;
if
(
irp
->
IoStatus
.
u
.
Status
>=
0
)
{
req
->
size
=
irp
->
IoStatus
.
Information
;
if
(
out_buff
)
wine_server_add_data
(
req
,
out_buff
,
irp
->
IoStatus
.
Information
);
}
status
=
wine_server_call
(
req
);
...
...
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
dfc7132f
...
...
@@ -445,7 +445,7 @@ static void test_return_status(void)
ok
(
!
ret
,
"ioctl succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_MR_MID_NOT_FOUND
,
"got error %u
\n
"
,
GetLastError
());
todo_wine
ok
(
!
strcmp
(
buffer
,
"ghidef"
),
"got buffer %s
\n
"
,
buffer
);
todo_wine
ok
(
ret_size
==
3
,
"got size %u
\n
"
,
ret_size
);
ok
(
ret_size
==
3
,
"got size %u
\n
"
,
ret_size
);
strcpy
(
buffer
,
"abcdef"
);
status
=
0xceadbeef
;
...
...
@@ -455,7 +455,7 @@ static void test_return_status(void)
ok
(
!
ret
,
"ioctl succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_MR_MID_NOT_FOUND
,
"got error %u
\n
"
,
GetLastError
());
ok
(
!
strcmp
(
buffer
,
"abcdef"
),
"got buffer %s
\n
"
,
buffer
);
todo_wine
ok
(
ret_size
==
3
,
"got size %u
\n
"
,
ret_size
);
ok
(
ret_size
==
3
,
"got size %u
\n
"
,
ret_size
);
}
static
void
test_driver3
(
void
)
...
...
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