Erich E. Hoover : ws2_32: Add stub for TransmitFile.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Oct 7 10:00:49 CDT 2015
Module: wine
Branch: master
Commit: 23c293ae4c9929a08fd122b64d928c2cfb37f2b7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=23c293ae4c9929a08fd122b64d928c2cfb37f2b7
Author: Erich E. Hoover <erich.e.hoover at gmail.com>
Date: Thu Jan 16 17:52:50 2014 -0700
ws2_32: Add stub for TransmitFile.
Signed-off-by: Erich E. Hoover <erich.e.hoover at wine-staging.com>
---
dlls/ws2_32/socket.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 5098f85..4edb579 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -2725,6 +2725,19 @@ static BOOL WINAPI WS2_AcceptEx(SOCKET listener, SOCKET acceptor, PVOID dest, DW
}
/***********************************************************************
+ * TransmitFile
+ */
+static BOOL WINAPI WS2_TransmitFile( SOCKET s, HANDLE h, DWORD file_bytes, DWORD bytes_per_send,
+ LPOVERLAPPED overlapped, LPTRANSMIT_FILE_BUFFERS buffers,
+ DWORD flags )
+{
+ FIXME("(%lx, %p, %d, %d, %p, %p, %d): stub !\n", s, h, file_bytes, bytes_per_send, overlapped,
+ buffers, flags );
+ WSASetLastError( WSAEOPNOTSUPP );
+ return FALSE;
+}
+
+/***********************************************************************
* GetAcceptExSockaddrs
*/
static void WINAPI WS2_GetAcceptExSockaddrs(PVOID buffer, DWORD data_size, DWORD local_size, DWORD remote_size,
@@ -4430,7 +4443,8 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
}
else if ( IsEqualGUID(&transmitfile_guid, in_buff) )
{
- FIXME("SIO_GET_EXTENSION_FUNCTION_POINTER: unimplemented TransmitFile\n");
+ *(LPFN_TRANSMITFILE *)out_buff = WS2_TransmitFile;
+ break;
}
else if ( IsEqualGUID(&transmitpackets_guid, in_buff) )
{
More information about the wine-cvs
mailing list