mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-02 12:30:24 +08:00
Cygwin: AF_UNIX: peek_pipe: check for STATUS_BUFFER_OVERFLOW
Treat this the same as STATUS_SUCCESS.
This commit is contained in:
parent
abb6475a3b
commit
67da0f3087
@ -1152,9 +1152,12 @@ fhandler_socket_unix::peek_pipe (PFILE_PIPE_PEEK_BUFFER pbuf, ULONG psize,
|
||||
if (NT_SUCCESS (status))
|
||||
status = io.Status;
|
||||
}
|
||||
ret_len = (NT_SUCCESS (status)
|
||||
? (io.Information - offsetof (FILE_PIPE_PEEK_BUFFER, Data))
|
||||
: 0);
|
||||
if (NT_SUCCESS (status) || status == STATUS_BUFFER_OVERFLOW)
|
||||
{
|
||||
ret_len = io.Information - offsetof (FILE_PIPE_PEEK_BUFFER, Data);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
ret_len = 0;
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user