Commit Graph

199 Commits

Author SHA1 Message Date
Jacek Caban 923498da03 wininet: Moved freeing object to WININET_Release. 2011-02-04 15:25:32 +01:00
Jacek Caban a073c66f0d wininet: Moved creation of an object and allocating handles to common function.
Fixes a few leaks.
2011-02-03 13:15:18 +01:00
Jacek Caban f165e25e59 wininet: Handles handling clean up. 2011-02-03 13:15:18 +01:00
Hans Leidekker 80dd367846 wininet: Pass the object header pointer to INET_QueryOption. 2010-05-25 13:30:18 +02:00
Jacek Caban 88ac3a381b wininet: Return error directly from INTERNET_AsyncCall. 2009-12-21 15:36:53 +01:00
Hans Leidekker 5f08249831 wininet: Fix some status callbacks to return a string instead of a sockaddr structure.
Spotted by Juan Lang.
2009-12-04 14:42:37 +01:00
Francois Gouget f3b738f63c wininet: Make FTP_FtpOpenFileW() static. 2009-12-04 14:34:58 +01:00
Juan Lang b967fde0a8 wininet: Correct length of data passed to callback when resolving a name. 2009-12-04 14:34:57 +01:00
Michael Stefaniuc b8a087d6a8 wininet: Free the mem unconditionally to prevent a potential leak (Smatch). 2009-12-03 10:21:48 +01:00
Hans Leidekker be86c2976b wininet: Implement InternetQueryOption(INTERNET_OPTION_DATAFILE_NAME) for ftp file objects. 2009-12-02 12:12:39 +01:00
Hans Leidekker 6f6ee2e712 wininet: Also cache files transferred over ftp. 2009-12-02 12:12:33 +01:00
Jacek Caban 1ee3ad476e wininet: Directly return error status from WriteFile implementations. 2009-11-30 12:48:33 +01:00
Dan Kegel 15d7b7b777 wininet: FTP_FtpOpenFileW: initialize dwInternalFlags. 2009-11-09 19:36:11 +01:00
Hans Leidekker 0f127fc7a1 wininet: Avoid accessing uninitialized memory.
Found by valgrind.
2009-10-23 12:04:15 +02:00
Aric Stewart 05926a10ff wininet: Be sure to set lpwfs->pasvSocket to -1 when closing the socket to prevent double closes. 2009-09-17 10:10:33 -05:00
Aric Stewart 51a57b7e25 wininet: Ensure the ftp connections lstnSocket is set to -1 after each close. 2009-09-16 14:47:12 -05:00
Jacek Caban 5d6f01b76b wininet: Rename WININET_strdup_WtoA to heap_strdupWtoA. 2009-07-17 11:16:55 +02:00
Jacek Caban e09dfcfa99 wininet: Rename WININET_strdup_AtoW to heap_strdupAtoW and handle NULL argument in its implementation. 2009-07-17 11:16:50 +02:00
Jacek Caban f598709212 wininet: Rename WININET_strdupW to standard heap_strdupW. 2009-07-17 11:16:42 +02:00
Jacek Caban 54870c1431 wininet: Rename WININETFTPFILEW to ftp_file_t. 2009-07-13 10:27:04 +02:00
Jacek Caban 8adbf8ce01 wininet: Rename WININETFTPSESSIONW to ftp_session_t. 2009-07-13 10:26:59 +02:00
Jacek Caban 6d1601a850 wininet: Rename WININETAPPINFOW to appinfo_t. 2009-07-13 10:26:52 +02:00
Juan Lang 78b813236a wininet: Fail in FTP if the resolved name is not an IPv4 address. 2009-07-10 12:25:33 +02:00
Juan Lang 9f82d9c779 wininet: Use sizeof(member) rather than sizeof(type) for address lengths. 2009-07-10 12:25:05 +02:00
Juan Lang deabdca653 wininet: Use length reported by GetAddress in FTP_Connect. 2009-07-10 12:24:58 +02:00
Juan Lang 44bf025767 wininet: Change type of GetAddress from struct sockaddr_in * to struct sockaddr *. 2009-07-10 12:24:35 +02:00
Jacek Caban 44d633a902 wininet: Rename WININETHANDLEHEADER to object_header_t.
wininet struct names are very unreadable and I hope that patches 
renaming them will be accepted.
2009-07-08 20:13:00 +02:00
Maksim Kuleshov d233118f7a wininet: Fix sockets leak in FTP_Connect. 2009-06-26 14:40:46 +02:00
Hans Leidekker 285eeea7ef wininet: Implement InternetReadFileEx for ftp requests. 2009-04-30 12:47:35 +02:00
Jacek Caban 0031b40454 wininet: Release session after FTP_ReceiveResponse call in FTPFILE_Destroy. 2009-03-09 12:06:02 +01:00
Jacek Caban 08e4846fca wininet: Don't send INTERNET_STATUS_REQUEST_COMPLETE notification from FTP_Connect. 2009-02-11 11:42:13 +01:00
Jacek Caban 19b01f2fca wininet: Make sure that we have some data buffered before sending INTERNET_STATUS_REQUEST_COMPLETE notification. 2009-02-11 11:42:08 +01:00
Jacek Caban f8e6fbffc5 wininet: Added QueryDataAvailable implementation for FTP files. 2009-02-11 11:42:00 +01:00
Jacek Caban 9b65e5744f wininet: Fixed handling empty string password. 2009-02-11 11:41:32 +01:00
Jacek Caban a83a817ad0 wininet: Move FtpOpenFile[AW] implementation to avoid forward declaration. 2009-02-11 11:41:28 +01:00
Hans Leidekker b013ad168b wininet: Implement InternetReadFileExW. 2009-01-16 12:34:26 +01:00
Alexandre Julliard bb8883dda0 wininet: Fix handle cast warnings on 64-bit. 2009-01-08 17:28:21 +01:00
Alexandre Julliard 20ed414d24 wininet: Store file time as a SYSTEMTIME instead of a Unix struct tm. 2008-12-22 11:44:45 +01:00
Alexandre Julliard 82280618db wininet: Include ws2tcpip.h before anything else for the Windows build. 2008-12-09 11:33:25 +01:00
Michael Stefaniuc e6bd2881d8 wininet: Remove some superfluous casts. 2008-12-01 12:57:03 +01:00
Francois Gouget 523679666d wininet: Remove WINAPI on static functions where not needed. 2008-11-25 11:50:08 +01:00
Henri Verbeet 369da3aeb9 wininet: Treat an empty username as NULL in FTP_Connect(). 2008-11-18 12:46:18 +01:00
Hans Leidekker b311cca552 wininet: Delete local file on error in FtpGetFile. 2008-07-21 12:21:40 +02:00
Jacek Caban 7426e7e055 wininet: Moved more InternetQueryOption implementation to vtbl. 2008-07-21 12:18:48 +02:00
Andrew Talbot 07ae2992b8 wininet: Remove unused variables. 2008-05-05 12:52:26 +02:00
Hans Leidekker 26b38dc503 wininet: Avoid a crash with traces on. 2008-03-25 11:33:41 +01:00
Jacek Caban e2933c20d6 wininet: Move INTERNET_OPTION_HANDLE_TYPE to vtbl. 2008-03-12 11:59:41 +01:00
Rob Shearman bdc81d9963 wininet: Make the reference count of WININETHANDLEHEADER thread-safe by using InterlockedIncrement/InterlockedDecrement. 2008-03-10 19:12:54 +01:00
Jacek Caban d597fd12fc wininet: Moved InternetReadFileExA to vtbl. 2008-03-03 20:45:31 +01:00
Jacek Caban 352b4212a1 wininet: Move FTP structs and functions declarations from internet.h. 2008-03-03 12:00:27 +01:00