[PATCH] wininet: Implement support for INTERNET_OPTION_VERSION in InternetQueryOptionW

Johannes Stezenbach js at sig21.net
Wed Dec 5 17:39:23 CST 2007


Implement support for INTERNET_OPTION_VERSION in InternetQueryOptionW().

The Bridgit Desktop sharing client uses this to check the winsock version.
http://www2.smarttech.com/st/en-US/Products/Bridgit/

diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 5848ea1..b662586 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -2328,6 +2328,20 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
                 }
             }
             break;
+        case INTERNET_OPTION_VERSION:
+        {
+            TRACE("INTERNET_OPTION_VERSION\n");
+            if (*lpdwBufferLength < sizeof(INTERNET_VERSION_INFO))
+                INTERNET_SetLastError(ERROR_INSUFFICIENT_BUFFER);
+            else
+            {
+                INTERNET_VERSION_INFO info = { 6L, 0L };
+                memcpy(lpBuffer, &info, sizeof(info));
+                *lpdwBufferLength = sizeof(info);
+                bSuccess = TRUE;
+            }
+            break;
+        }
         default:
             FIXME("Stub! %d\n", dwOption);
             break;



More information about the wine-patches mailing list