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
9acff755
Commit
9acff755
authored
Apr 07, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Apr 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Do not update iosb.Status after FSCTL_PIPE_LISTEN call.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
96aca1ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
pipe.c
dlls/kernel32/tests/pipe.c
+1
-1
file.c
dlls/ntdll/file.c
+5
-1
pipe.c
dlls/ntdll/tests/pipe.c
+2
-2
No files found.
dlls/kernel32/tests/pipe.c
View file @
9acff755
...
...
@@ -2141,7 +2141,7 @@ static void test_overlapped_error(void)
err
=
GetLastError
();
ok
(
ret
==
FALSE
,
"ConnectNamedPipe succeeded
\n
"
);
ok
(
err
==
ERROR_PIPE_CONNECTED
,
"expected ERROR_PIPE_CONNECTED, got %u
\n
"
,
err
);
todo_wine
ok
(
overlapped
.
Internal
==
STATUS_PENDING
,
"expected STATUS_PENDING, got %08lx
\n
"
,
overlapped
.
Internal
);
ok
(
overlapped
.
Internal
==
STATUS_PENDING
,
"expected STATUS_PENDING, got %08lx
\n
"
,
overlapped
.
Internal
);
CloseHandle
(
file
);
CloseHandle
(
pipe
);
...
...
dlls/ntdll/file.c
View file @
9acff755
...
...
@@ -1757,6 +1757,11 @@ NTSTATUS WINAPI NtFsControlFile(HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc
}
break
;
case
FSCTL_PIPE_LISTEN
:
status
=
server_ioctl_file
(
handle
,
event
,
apc
,
apc_context
,
io
,
code
,
in_buffer
,
in_size
,
out_buffer
,
out_size
);
return
status
;
case
FSCTL_PIPE_IMPERSONATE
:
FIXME
(
"FSCTL_PIPE_IMPERSONATE: impersonating self
\n
"
);
status
=
RtlImpersonateSelf
(
SecurityImpersonation
);
...
...
@@ -1797,7 +1802,6 @@ NTSTATUS WINAPI NtFsControlFile(HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc
io
->
Information
=
0
;
status
=
STATUS_SUCCESS
;
break
;
case
FSCTL_PIPE_LISTEN
:
case
FSCTL_PIPE_WAIT
:
default:
status
=
server_ioctl_file
(
handle
,
event
,
apc
,
apc_context
,
io
,
code
,
...
...
dlls/ntdll/tests/pipe.c
View file @
9acff755
...
...
@@ -308,7 +308,7 @@ static void test_overlapped(void)
memset
(
&
iosb
,
0x55
,
sizeof
(
iosb
));
res
=
listen_pipe
(
hPipe
,
hEvent
,
&
iosb
,
TRUE
);
ok
(
res
==
STATUS_PIPE_CONNECTED
,
"NtFsControlFile returned %x
\n
"
,
res
);
todo_wine
ok
(
U
(
iosb
).
Status
==
0x55555555
,
"iosb.Status got changed to %x
\n
"
,
U
(
iosb
).
Status
);
ok
(
U
(
iosb
).
Status
==
0x55555555
,
"iosb.Status got changed to %x
\n
"
,
U
(
iosb
).
Status
);
CloseHandle
(
hClient
);
}
...
...
@@ -392,7 +392,7 @@ static void test_alertable(void)
todo_wine
ok
(
res
==
STATUS_CANCELLED
,
"NtFsControlFile returned %x
\n
"
,
res
);
ok
(
userapc_called
,
"user apc didn't run
\n
"
);
todo_wine
ok
(
U
(
iosb
).
Status
==
0x55555555
,
"iosb.Status got changed to %x
\n
"
,
U
(
iosb
).
Status
);
ok
(
U
(
iosb
).
Status
==
0x55555555
,
"iosb.Status got changed to %x
\n
"
,
U
(
iosb
).
Status
);
ok
(
WaitForSingleObjectEx
(
hEvent
,
0
,
TRUE
)
==
WAIT_TIMEOUT
,
"hEvent signaled
\n
"
);
ok
(
!
ioapc_called
,
"IOAPC ran
\n
"
);
...
...
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