Skip to content

Instantly share code, notes, and snippets.

@Riesi
Created February 18, 2021 18:14
Show Gist options
  • Save Riesi/44fa0b53fa58fa9347a5364e7b549bd7 to your computer and use it in GitHub Desktop.
Save Riesi/44fa0b53fa58fa9347a5364e7b549bd7 to your computer and use it in GitHub Desktop.
Fixes The Guild 2 Mupltiplayer with native DirectPlay in wine
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 6e783f87ee7..55d4ac5f04e 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -4966,8 +4966,10 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
completion = NULL;
overlapped = NULL;
}
- else
+ else{
+ status = 0 ;
FIXME("unsupported WS_IOCTL cmd (%s)\n", debugstr_wsaioctl(code));
+ }
}
if (completion)
@Riesi
Copy link
Author

Riesi commented Feb 18, 2021

019c:fixme:winsock:server_ioctl_sock Unsupported ioctl 28000002 (device=2800 access=0 func=0 method=2)
019c:fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (SIO_ENABLE_CIRCULAR_QUEUEING)
019c:fixme:winsock:server_ioctl_sock Unsupported ioctl 98000007 (device=9800 access=0 func=1 method=3)
019c:fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (_WSAIOW(IOC_VENDOR, 7))

@Riesi
Copy link
Author

Riesi commented Feb 18, 2021

SIO_ENABLE_CIRCULAR_QUEUEING only impacts data queuing behavior of WS in high packet pressure scenarios.
https://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedsocketoptionioctl7e.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment