InternetWriteFile

Aric Stewart aric at codeweavers.com
Fri Nov 18 15:49:38 CST 2005


Implement the use of NETCON_send for HTTP connections when in 
InternetWriteFile.

part of a fix of emailing pictures in Picasa .
-------------- next part --------------
Index: dlls/wininet/internet.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/internet.c,v
retrieving revision 1.142
diff -u -r1.142 internet.c
--- dlls/wininet/internet.c	16 Nov 2005 11:21:41 -0000	1.142
+++ dlls/wininet/internet.c	18 Nov 2005 21:47:40 -0000
@@ -1676,10 +1676,17 @@
     switch (lpwh->htype)
     {
         case WH_HHTTPREQ:
-            FIXME("This shouldn't be here! We don't support this kind"
-                  " of connection anymore. Must use NETCON functions,"
-                  " especially if using SSL\n");
-            nSocket = ((LPWININETHTTPREQW)lpwh)->netConnection.socketFD;
+            {
+                LPWININETHTTPREQW lpwhr;
+                lpwhr = (LPWININETHTTPREQW)lpwh;
+
+                TRACE("HTTPREQ %li\n",dwNumOfBytesToWrite);
+                retval = NETCON_send(&lpwhr->netConnection, lpBuffer, 
+                        dwNumOfBytesToWrite, 0, (LPINT)lpdwNumOfBytesWritten);
+
+                WININET_Release( lpwh );
+                return retval;
+            }
             break;
 
         case WH_HFILE:


More information about the wine-patches mailing list