Rob Shearman
0c75ead3e8
wininet: Validate parameters passed to RetrieveUrlCacheEntryInfoA/W.
...
Add tests for this.
2008-10-08 12:16:59 +02:00
Rob Shearman
ab849ee297
wininet: Fix GetUrlCacheEntryInfoA/W when a NULL lpCacheEntryInfo parameter is passed in.
2008-10-06 13:07:43 +02:00
Rob Shearman
d929cdef97
wininet: Return error codes explicitly from URLCache functions instead of returning a BOOL and storing the error code in the last error value.
...
This makes the code more efficient and allows errors from functions to
be ignored without side-effects.
2008-10-06 13:07:36 +02:00
Colin Finck
a33d7fc8c9
Fix some hackish usages of WideCharToMultiByte.
2008-07-31 14:08:29 +02:00
Francois Gouget
eb16f43bdf
Add some API documentation stubs to make winapi_check happy.
2008-07-28 11:34:45 +02:00
Lei Zhang
255eebe44d
wininet: Handle NULL input for FindCloseUrlCache.
2008-05-08 22:48:30 +02:00
Andrew Talbot
07ae2992b8
wininet: Remove unused variables.
2008-05-05 12:52:26 +02:00
Rob Shearman
1ea7666c57
wininet: Don't crash in GetUrlCacheEntryInfoA/W if lpdwCacheEntryInfoBufferSize is NULL.
2008-04-30 17:00:02 +02:00
Louis Lenders
b3f7860917
wininet: Improve stub for FindNextUrlCacheEntryW a tiny bit.
2008-04-18 14:23:19 +02:00
Rob Shearman
99f651bd37
wininet: The lpszLocalFileName parameter to CommitUrlCacheEntryA is optional, so check before converting it from Unicode to ANSI.
2008-03-17 15:20:10 +01:00
Jacek Caban
e8be5eaba7
wininet: Don't use query and hash part of URL to generate cache file name.
2008-03-17 11:42:39 +01:00
Joris Huizer
4fca67e651
wininet: Fixed typos in two out-of-memory checks.
2008-03-13 20:44:18 +01:00
Rob Shearman
bcfb47e85b
wininet: Fix local variable shadowing in URLCacheContainer_OpenIndex.
2008-03-12 19:21:38 +01:00
Rob Shearman
716ecc42f9
wininet: Support the lpszFileExtension "reserved" parameter being passed into CommitUrlCacheEntryA.
...
Store it in the URL cache entry and allow it to be retrieved by
RetrieveUrlCacheEntryFile and other functions.
2008-03-12 17:58:37 +01:00
Rob Shearman
fee165ae47
wininet: The URL in CommitUrlCacheEntryInternal shouldn't be restricted to MAX_PATH chars in length.
...
Dynamically allocate it and consolidate cleanup at the end of the function.
2008-03-12 17:58:31 +01:00
Rob Shearman
cdd135c2f3
wininet: Fix URLCache_LocalFileNameToPathA to return a full path, rather than just the container path.
...
This was caused by path_len including the nul-terminator and so the rest
of the string was being added after the nul-terminator, which is
incorrect. This is fixed by making path_len not include the nul-terminator.
Also fix a few other issues with the function, like not passing a
correct length into the second call to WideCharToMultiByte, nRequired
being calculated incorrectly and the string not always being nul-terminated.
Add a test for this function by testing the lpszLocalFileName field
obtained from RetrieveUrlCacheEntryFileA.
2008-03-12 17:58:20 +01:00
Rob Shearman
c46279ced7
wininet: Make some pointers const in URL cache functions.
2008-03-12 17:58:10 +01:00
Rob Shearman
f1af593988
wininet: Use LIST_FOR_EACH_ENTRY in URLCacheContainers_FindContainerW instead of LIST_FOR_EACH and LIST_ENTRY.
2008-03-12 17:58:03 +01:00
Rob Shearman
160bc04343
wininet: Move URL cache hash entry validation to a separate function.
2008-03-12 17:57:30 +01:00
Rob Shearman
7fde7aef78
wininet: Implement FindFirstUrlCacheEntry{A, W}, FindNextUrlCacheEntryA and FindCloseUrlCache.
2008-03-12 17:57:25 +01:00
Rob Shearman
2e99817a40
wininet: Fix the return value check of SHGetSpecialFolderPathW in URLCacheContainers_CreateDefaults.
...
It returns a BOOL, not an HRESULT.
2008-02-16 13:54:28 +01:00
Jacek Caban
f979134270
wininet: Code clean up.
2008-02-15 10:00:12 +01:00
Andrew Talbot
45481db078
wininet: Remove unneeded casts.
2008-02-05 12:19:37 +01:00
Austin English
0e4adae973
Spelling fixes.
2008-01-07 13:41:01 +01:00
Johannes Stezenbach
a3ae419594
wininet: Fix error return code in FindFirstUrlCacheEntryW() stub.
2007-12-23 14:17:12 +01:00
Francois Gouget
c4b1195c0c
Assorted spelling fixes.
2007-10-23 18:20:27 +02:00
Juan Lang
1b42c00789
wininet: Pass hash entry directly to URLCache_DeleteEntryFromHash.
2007-10-23 12:23:41 +02:00
Juan Lang
d448a2ad9b
wininet: Implement RetrieveUrlCacheEntryFileW.
2007-10-23 12:23:36 +02:00
Juan Lang
922dc7b627
wininet: Implement UnlockUrlCacheEntryFileW.
2007-10-23 12:23:32 +02:00
Juan Lang
9949926441
wininet: Pass hash entry directly to URLCache_HashEntrySetUse rather than searching for it again.
2007-10-23 12:23:25 +02:00
Juan Lang
601b6835ed
wininet: Introduce a URLCache_FindHashW, and use it rather than URLCache_FindEntryInHashW.
2007-10-23 12:23:19 +02:00
Juan Lang
af61cbdd03
wininet: Use URLCache_FindHash rather than URLCache_FindEntryInHash.
2007-10-23 12:23:10 +02:00
Juan Lang
c527c7611a
wininet: Implement DeleteUrlCacheEntryW.
2007-10-22 12:36:08 +02:00
Juan Lang
d155915861
wininet: Implement IsUrlCacheEntryExpiredW.
2007-10-22 12:36:08 +02:00
Juan Lang
6fdec3d501
wininet: Add a URLCache_FindEntryInHashW helper, and use it to simplify finding an entry in a hash with a wide-character URL string.
2007-10-22 12:36:08 +02:00
Juan Lang
1594b429f8
wininet: Implement IsUrlCacheEntryExpiredA.
2007-10-22 12:36:08 +02:00
Juan Lang
a6c252c122
wininet: Update comments to match function parameters.
2007-10-22 12:36:08 +02:00
Misha Koshelev
728e5fa559
wininet: Track child handles, free all child handles on WININET_FreeHandle as native.
2007-09-21 11:53:04 +02:00
Francois Gouget
f33abb6d96
wininet: Add a skeleton winineti.h header with fixed prototypes for [GS]etUrlCacheConfigInfo*(), DeleteIE3Cache() and IsUrlCacheEntryExpired*().
...
Remove SetUrlCacheConfigInfo*() from wininet.h, it's supposed to be declared in winineti.h.
Update win32.api to fix the winapi_check warnings.
2007-08-09 14:11:56 +02:00
Huw Davies
3f2d93b512
wininet: Stubs for IsUrlCacheEntryExpired[AW].
2007-07-19 11:54:10 +02:00
Andrew Talbot
8ee390f6f5
wininet: Exclude unused headers.
2007-05-29 12:10:17 +02:00
Alban Browaeys
3d79f1b80b
wininet: Fix szCacheContent in URLCacheContainer_OpenIndex.
2007-04-16 13:20:54 +02:00
Francois Gouget
9fe4673347
Don't include windows.h & co in the Wine sources.
...
Remove uneeded COM_NO_WINDOWS_H defines.
2006-10-24 17:47:09 +02:00
Hans Leidekker
cd2c458588
wininet: Win64 printf format warning fixes.
2006-10-05 17:45:14 +02:00
James Hawkins
8c6040fccc
wininet: Only copy the relative filename into the UrlEntry structure.
2006-07-29 11:51:21 +02:00
Mike McCormack
39c905f6d0
wininet: Make sure to null terminate a string before copying it.
2006-06-19 20:53:31 +02:00
Andrew Ziem
7053321926
wininet: Constify data.
2006-05-25 11:01:06 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Michael Stefaniuc
a87520036f
janitorial: Remove redundant NULL pointer checks before HeapFree'ing them.
...
Some HeapFree's are hidden behind macros. Found by smatch.
2006-05-10 11:31:41 +02:00
Robert Shearman
c564ee826f
wininet: Fix some string length calculations.
...
Fix some string length calculations that didn't account for the
different sized characters with Unicode.
2006-03-30 21:55:37 +02:00
Robert Shearman
4f40f17226
wininet: Only access the URL in the cache by the provided offset.
2006-03-30 21:55:29 +02:00
Robert Shearman
7b4b4b7930
wininet: Handle the cache being full better in CommitUrlCacheEntryInternal.
...
Move the freeing of allocation blocks for an entry into
URLCache_DeleteEntry.
Call URLCache_DeleteEntry to rollback from failure in
CommitUrlCacheEntryInternal.
2005-12-31 13:21:19 +01:00
Robert Shearman
13f2ce26dd
wininet: Create new hash tables for URL cache on demand.
2005-12-31 13:20:54 +01:00
Robert Shearman
2ceb052496
wininet: Move URL cache hash table creation to a separate function.
2005-12-31 13:20:29 +01:00
Alexandre Julliard
3566fe60a8
Fixed Unicode buffer size bug in CreateUrlCacheEntryW.
2005-11-15 16:56:04 +00:00
Mike McCormack
257c337c19
gcc 4.0 -Wpointer-sign fixes (Reg* functions).
2005-07-07 12:08:42 +00:00
Mike McCormack
9b95bb526d
Fix some warnings.
2005-06-13 19:05:42 +00:00
Troy Rollo
9d86716ef6
Create URL Cache if it does not already exist.
2005-05-04 10:36:43 +00:00
Peter Berg Larsen
6aefbc0934
Strncpy elimination.
2005-04-18 15:36:20 +00:00
Jakob Eriksson
9ed61de9a2
Get rid of HeapAlloc casts.
2005-03-24 21:01:35 +00:00
Troy Rollo
9c7932d475
Implement CreateUrlCacheEntryW and CommitUrlCacheEntryW. Replace the
...
existing 'A' versions with calls to the 'W' versions.
2005-03-21 12:33:17 +00:00
Vincent Béron
1e365f7791
Fixed some calling conventions.
2005-03-21 10:32:45 +00:00
Dmitry Timoshkov
75b93ff1aa
Match OVERLAPPED structure to the SDK definition.
2005-03-17 19:00:08 +00:00
Hans Leidekker
6a8b67ca33
Stub implementations for DeleteUrlCacheContainer{A,W},
...
CreateCacheContainer{A,W}, FindFirstUrlCacheContainer{A,W},
FindNextUrlCacheContainer{A,W}.
Handle the case where the supplied buffer size is too small in
InternetQueryOption.
2005-02-08 13:43:09 +00:00
Hans Leidekker
6a367dbf8d
- Stub implementations for FtpGetFileSize, FtpCommand{A,W},
...
HttpSendRequestExW, InternetGetLastResponseInfoW,
InternetConfirmZoneCrossing{A,W}, InternetDial{A,W},
InternetGoOnline{A,W}, InternetHangUp, CreateMD5SSOHash,
InternetClearAllPerSiteCookieDecisions,
InternetEnumPerSiteCookieDecision{A,W}, InternetGetCookieEx{A,W},
InternetGetPerSiteCookieDecision{A,W},
InternetSetPerSiteCookieDecision{A,W}, InternetSetCookieEx{A,W},
ResumeSuspendedDownload, RetrieveUrlCacheEntryFileW,
UnlockUrlCacheEntryFileW, {Create,Delete}UrlCacheEntryW,
CommitUrlCacheEntryW, RetrieveUrlCacheEntryStreamW,
FindCloseUrlCache, FindFirstUrlCacheEntryEx{A,W},
FindFirstUrlCacheGroup, FindNextUrlCacheEntry{,Ex}{A,W},
FindNextUrlCacheGroup, SetUrlCacheEntryGroup{A,W},
{Get,Set}UrlCacheGroupAttribute{A,W}, SetUrlCacheConfigInfo{A,W}.
- Spec file stubs for new undocumented functions
ForceNexusLookup{,ExW}, Ftp{Get,Put}FileEx, HttpCheckDavCompliance,
InternetAlgIdToString{A,W}, InternetFortezzaCommand,
InternetGetCertByURLA, InternetQueryFortezzaStatus,
InternetSecurityProtocolToString{A,W}, InternetSetDialState{A,W},
InternetShowSecurityInfoByURL{A,W}, IsUrlCacheEntryExpired{A,W},
Privacy{Get,Set}ZonePreferenceW, RegisterUrlCacheNotification,
UrlZonesDetach.
- Use memcpy instead of strncpy in InternetGetLastResponseInfoA.
- Add and improve some traces.
- Fix my own coding style in InternetTimeToSystemTimeW.
- Fix a couple of signedness warnings.
2005-02-01 18:50:53 +00:00
Alexandre Julliard
754e7aa788
Added configure check for socklen_t.
2004-09-03 18:30:28 +00:00
Robert Shearman
765b92f9ed
Don't use freed memory.
2004-08-26 18:22:43 +00:00
Robert Shearman
f625f4a071
Fix type of DeleteIE3Cache function.
2004-08-19 19:57:37 +00:00
Stefan Leichter
ece5e478fe
Added stub for DeleteIE3Cache.
2004-08-19 01:05:13 +00:00
Mike McCormack
13b6ce6da8
Fix warnings generated with -Wsign-compare.
2004-08-09 18:54:23 +00:00
Francois Gouget
6b6ed724ae
Add missing '\n's to debug traces.
2004-01-27 00:01:43 +00:00
Gerald Pfeifer
6969a9b02d
Remove URLCache_FindEntry() which is not used any longer.
2003-12-31 00:11:02 +00:00
Michael Stefaniuc
0bdf5d8c91
Fixed mem leak on error path.
2003-12-30 19:19:46 +00:00
Robert Shearman
fa7d78f118
- Url Cache improvements.
...
- In Internet{Set,Query}Option functions, hInternet can be NULL.
- Add traces to Internet* functions.
2003-12-12 06:01:20 +00:00
Alexandre Julliard
e37c6e18d0
Fixed header dependencies to be fully compatible with the Windows
...
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Patrik Stridvall
ba78aac406
Fixed some issues found by winapi_check.
2003-08-08 21:07:23 +00:00
Robert Shearman
4450a61149
- Documentation of the index.dat files.
...
- Read support for "Temporary Internet Files".
- Limited write support for "Temporary Internet Files" (provided file
does not need enlarging).
- Delete support (untested on anything other than Temporary Internet
Files).
2003-08-05 19:21:38 +00:00
Mike McCormack
9bca6c6d4f
Stubs for InternetCreateUrlA/W and CreateUrlCacheEntryA.
2003-07-19 03:08:05 +00:00
Mike Hearn
8e6ae023e5
Stub out SetUrlCacheEntryInfoA/W.
2003-06-16 19:40:27 +00:00
Uwe Bonnes
7c578ab349
Some UrlCache stubs.
2003-04-27 20:35:38 +00:00
Dmitry Timoshkov
2d55e0484c
Fix some problems found while compiling and linking Wine under
...
Cygwin.
2003-03-31 23:58:27 +00:00
Alberto Massari
adae4350d2
- Moved GetUrlCacheEntryInfoA and CommitUrlCacheEntryA to urlcache.c.
...
- Added stub implementation of GetUrlCacheEntryInfoExW.
- Implemented InternetQueryOptionW, InternetCombineUrl[A|W].
- InternetSetOptionW prints FIXMEs with more informations.
- INTERNET_SetLastError was crashing if called after the thread
local storage area had already been deleted (it happens if you
close Internet Explorer while the download is still in progress).
2002-12-05 19:54:40 +00:00
Alberto Massari
b09eef23b3
Added stubs for IsHostInProxyBypassList and GetUrlCacheEntryInfoExA.
2002-11-13 04:08:26 +00:00
Chris Morgan
a8b3216670
Added stubs for HttpEndRequestA/W, InternetReadFileExA/W,
...
SetUrlCacheEntryGroup, CreateUrlCacheGroup, DeleteUrlCacheGroup.
2002-09-27 22:05:23 +00:00
Aric Stewart
ff9b9d4ef8
Reworking of http and asyncronous calls to get IE6 to install.
...
Added a version resource.
Added unit test for http.
2002-06-21 23:59:49 +00:00
Alexandre Julliard
0799c1a780
Added LGPL standard comment, and copyright notices where necessary.
...
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Eric Kohl
5320a42a9c
Added FindFirstUrlCacheEntry[AW] stubs.
2002-01-29 18:12:28 +00:00