wininet: Initialize ftp sockets.

This commit is contained in:
Lei Zhang 2007-11-07 22:33:21 -08:00 committed by Alexandre Julliard
parent 509760922a
commit f727e56d6d
1 changed files with 3 additions and 0 deletions

View File

@ -2049,6 +2049,9 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
lpwfs->hdr.destroy = FTP_CloseSessionHandle; lpwfs->hdr.destroy = FTP_CloseSessionHandle;
lpwfs->hdr.lpfnStatusCB = hIC->hdr.lpfnStatusCB; lpwfs->hdr.lpfnStatusCB = hIC->hdr.lpfnStatusCB;
lpwfs->download_in_progress = NULL; lpwfs->download_in_progress = NULL;
lpwfs->sndSocket = -1;
lpwfs->lstnSocket = -1;
lpwfs->pasvSocket = -1;
WININET_AddRef( &hIC->hdr ); WININET_AddRef( &hIC->hdr );
lpwfs->lpAppInfo = hIC; lpwfs->lpAppInfo = hIC;