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
f449146a
Commit
f449146a
authored
Oct 09, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove no longer needed handling of FD_TYPE_PIPE.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c295dd6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
file.c
dlls/ntdll/file.c
+2
-4
No files found.
dlls/ntdll/file.c
View file @
f449146a
...
...
@@ -711,7 +711,6 @@ static NTSTATUS get_io_timeouts( HANDLE handle, enum server_fd_type type, ULONG
}
break
;
case
FD_TYPE_SOCKET
:
case
FD_TYPE_PIPE
:
case
FD_TYPE_CHAR
:
if
(
is_read
)
timeouts
->
interval
=
0
;
/* return as soon as we got something */
break
;
...
...
@@ -764,7 +763,6 @@ static NTSTATUS get_io_avail_mode( HANDLE handle, enum server_fd_type type, BOOL
break
;
case
FD_TYPE_MAILSLOT
:
case
FD_TYPE_SOCKET
:
case
FD_TYPE_PIPE
:
case
FD_TYPE_CHAR
:
*
avail_mode
=
TRUE
;
break
;
...
...
@@ -1128,7 +1126,7 @@ static NTSTATUS FILE_AsyncWriteService( void *user, IO_STATUS_BLOCK *iosb, NTSTA
&
needs_close
,
&
type
,
NULL
)))
break
;
if
(
!
fileio
->
count
&&
(
type
==
FD_TYPE_MAILSLOT
||
type
==
FD_TYPE_
PIPE
||
type
==
FD_TYPE_
SOCKET
))
if
(
!
fileio
->
count
&&
(
type
==
FD_TYPE_MAILSLOT
||
type
==
FD_TYPE_SOCKET
))
result
=
send
(
fd
,
fileio
->
buffer
,
0
,
0
);
else
result
=
write
(
fd
,
&
fileio
->
buffer
[
fileio
->
already
],
fileio
->
count
-
fileio
->
already
);
...
...
@@ -1308,7 +1306,7 @@ NTSTATUS WINAPI NtWriteFile(HANDLE hFile, HANDLE hEvent,
for
(;;)
{
/* zero-length writes on sockets may not work with plain write(2) */
if
(
!
length
&&
(
type
==
FD_TYPE_MAILSLOT
||
type
==
FD_TYPE_
PIPE
||
type
==
FD_TYPE_
SOCKET
))
if
(
!
length
&&
(
type
==
FD_TYPE_MAILSLOT
||
type
==
FD_TYPE_SOCKET
))
result
=
send
(
unix_handle
,
buffer
,
0
,
0
);
else
result
=
write
(
unix_handle
,
(
const
char
*
)
buffer
+
total
,
length
-
total
);
...
...
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