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

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