Implement the use of NETCON_send for HTTP connections when in

InternetWriteFile.
This commit is contained in:
Aric Stewart 2005-11-21 11:57:33 +00:00 committed by Alexandre Julliard
parent ba190e9af6
commit 526d3e51ee
1 changed files with 11 additions and 4 deletions

View File

@ -1676,10 +1676,17 @@ BOOL WINAPI InternetWriteFile(HINTERNET hFile, LPCVOID lpBuffer ,
switch (lpwh->htype) switch (lpwh->htype)
{ {
case WH_HHTTPREQ: case WH_HHTTPREQ:
FIXME("This shouldn't be here! We don't support this kind" {
" of connection anymore. Must use NETCON functions," LPWININETHTTPREQW lpwhr;
" especially if using SSL\n"); lpwhr = (LPWININETHTTPREQW)lpwh;
nSocket = ((LPWININETHTTPREQW)lpwh)->netConnection.socketFD;
TRACE("HTTPREQ %li\n",dwNumOfBytesToWrite);
retval = NETCON_send(&lpwhr->netConnection, lpBuffer,
dwNumOfBytesToWrite, 0, (LPINT)lpdwNumOfBytesWritten);
WININET_Release( lpwh );
return retval;
}
break; break;
case WH_HFILE: case WH_HFILE: