[PATCH] local fixes in ioctl for google video.

Marcus Meissner marcus at jet.franken.de
Mon Sep 18 10:50:05 CDT 2006


Hi,

While debugging an earlier version of the Google Video Windows
player I found that it needed some WSAIoctl() codes.

These are just quick and dirty entries, but they helped.

Ciao, Marcus
---

 dlls/ws2_32/socket.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

875945d3dc3b239d69e5a5bc08d4d102454fa930
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 637642c..e60bc6e 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -2125,6 +2125,13 @@ INT WINAPI WSAIoctl(SOCKET s,
 
    switch( dwIoControlCode )
    {
+   case 0x8004667E:
+	FIXME("8004667E: stub!\n");
+	break;
+   case 0x4004667f: /* FIONREAD */
+	FIXME("4004667f/FIONREAD: stub, returning 1!\n");
+	*(DWORD*)lpbOutBuffer = 1;
+	break;
    case SIO_GET_INTERFACE_LIST:
        {
            INTERFACE_INFO* intArray = (INTERFACE_INFO*)lpbOutBuffer;
@@ -2256,9 +2263,12 @@ INT WINAPI WSAIoctl(SOCKET s,
        /* FIXME: error and return code depend on whether socket was created
         * with WSA_FLAG_OVERLAPPED, but there is no easy way to get this */
        break;
+   case SIO_FLUSH:
+	FIXME("SIO_FLUSH: stub.\n");
+	break;
 
    default:
-       WARN("\tunsupported WS_IOCTL cmd (%08lx)\n", dwIoControlCode);
+       FIXME("\tunsupported WS_IOCTL cmd (%08lx)\n", dwIoControlCode);
        release_sock_fd( s, fd );
        WSASetLastError(WSAEOPNOTSUPP);
        return SOCKET_ERROR;
-- 
1.2.4



More information about the wine-patches mailing list