[PATCH v14 2/5] ntdll: Return STATUS_DEVICE_NOT_READY instead of STATUS_PENDING from try_transmit().

Zebediah Figura zfigura at codeweavers.com
Thu Sep 23 00:48:00 CDT 2021


async_transmit_proc() expects the former.

Fixes: 1eb56b20baefcdccaafbb622cadc71670c149e18
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/ntdll/unix/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/unix/socket.c b/dlls/ntdll/unix/socket.c
index 73d61c0d4e6..ec6aa02d14a 100644
--- a/dlls/ntdll/unix/socket.c
+++ b/dlls/ntdll/unix/socket.c
@@ -1017,7 +1017,7 @@ static NTSTATUS try_transmit( int sock_fd, int file_fd, struct async_transmit_io
 
         if (ret < read_size || (async->file_len && async->file_cursor == async->file_len))
             async->file = NULL;
-        return STATUS_PENDING; /* still more data to send */
+        return STATUS_DEVICE_NOT_READY; /* still more data to send */
     }
 
     while (async->tail_cursor < async->buffers.TailLength)
-- 
2.33.0




More information about the wine-devel mailing list