http.c: handle HTTP_QUERY_CUSTOM

Robert Shearman rob at codeweavers.com
Wed Dec 7 13:06:08 CST 2005


Aric Stewart wrote:

>@@ -1475,6 +1481,9 @@
> 
>     len = (*lpdwBufferLength)*sizeof(WCHAR);
>     bufferW = HeapAlloc( GetProcessHeap(), 0, len );
>+    /* buffer is in/out because of HTTP_QUERY_CUSTOM */
>+    if (dwInfoLevel & HTTP_QUERY_CUSTOM)
>+        MultiByteToWideChar(CP_ACP,0,lpBuffer,-1,bufferW,len);
>     result = HttpQueryInfoW( hHttpRequest, dwInfoLevel, bufferW,
>                            &len, lpdwIndex );
>     if( result )
>  
>

This should be:
if ((dwInfoLevel & HTTP_QUERY_HEADER_MASK) == HTTP_QUERY_CUSTOM)

-- 
Rob Shearman




More information about the wine-patches mailing list