Francois Gouget
906127fe29
Assorted spelling fixes.
2012-10-01 12:07:41 +02:00
Francois Gouget
83af29fb03
wininet: Add a trailing '\n' to a couple of Wine traces.
2012-09-26 14:40:48 +02:00
Piotr Caban
fa0f0630c5
wininet: Delete cache directory when cache version doesn't match.
2012-09-26 14:40:48 +02:00
Piotr Caban
d2e5bb30eb
wininet: Don't ask for confirmation while deleting cache directory.
2012-09-26 14:40:46 +02:00
Piotr Caban
f9e80f588a
wininet: Ignore unsupported flags in GetUrlCacheEntryInfoEx functions.
2012-09-25 21:13:08 +02:00
Piotr Caban
7c6f0c9470
wininet: Fixed handling of GET_INSTALLED_ENTRY flag in GetUrlCacheEntryInfoW.
2012-09-25 21:13:08 +02:00
Piotr Caban
a342ded288
wininet: Fixed handling of GET_INSTALLED_ENTRY flag in GetUrlCacheEntryInfoA.
2012-09-25 21:13:07 +02:00
Piotr Caban
134db11eff
wininet: Move GetUrlCacheEntryInfoA code to GetUrlCacheEntryInfoExA function.
2012-09-25 21:13:07 +02:00
Francois Gouget
5f55a71b70
Assorted spelling fixes.
2012-09-24 22:27:29 +02:00
Piotr Caban
d07d3cbe91
wininet: Added support for cache containers without subdirectories.
2012-09-24 22:27:28 +02:00
Piotr Caban
78835843c2
wininet: Added support for cache path parameter in FreeUrlCacheSpace function.
2012-09-24 22:27:28 +02:00
Piotr Caban
122daa50bc
wininet: Reserve more space for urlcache entry flags.
2012-09-24 22:27:28 +02:00
Francois Gouget
51c90eba23
wininet: Make URLCacheContainers_{Create,Delete}All() static.
2012-09-24 16:38:16 +02:00
Piotr Caban
8bb1af84f4
wininet: Update used blocks count when block is allocated or freed.
2012-09-21 18:29:25 +02:00
Piotr Caban
34dc796406
wininet: Stop urlcache clearing when dll is being unloaded.
2012-09-21 18:29:24 +02:00
Piotr Caban
66931e4d9f
wininet: Improved FreeUrlCacheSpaceW implementation.
2012-09-21 18:29:24 +02:00
Piotr Caban
ed71ed596f
wininet: Call FreeUrlCacheSpaceW when cache is full.
2012-09-21 18:29:24 +02:00
Piotr Caban
e3a2e3a1c9
wininet: Don't delete files that were modified after adding to cache.
2012-09-19 16:31:56 +02:00
Piotr Caban
b7010348cf
wininet: Added support for leaked urlcache entries handling.
2012-09-19 16:31:41 +02:00
Piotr Caban
dba38b1ab4
wininet: Define more fields in urlcache header structure.
2012-09-19 16:31:32 +02:00
Piotr Caban
65034ce2a4
wininet: Set entry type based on container type.
2012-09-18 14:51:21 +02:00
Piotr Caban
8f2b0fdf52
wininet: Added support for cache entries overwriting.
2012-09-18 14:51:05 +02:00
Piotr Caban
6935b7c73b
wininet: Unlock urlcache entries that were locked for over a day.
2012-09-18 14:50:59 +02:00
Piotr Caban
359ed33824
wininet: Delete file when cache entry is deleted.
2012-09-18 14:50:54 +02:00
Piotr Caban
7967f8beec
wininet: Don't define DELETED_CACHE_ENTRY in public headers.
2012-09-18 14:50:49 +02:00
Piotr Caban
9d68333f78
wininet: Use the same hashing function as native does.
2012-04-19 19:28:11 +02:00
Piotr Caban
fdf2e15b80
wininet: Store correct urlcache file size.
2012-04-13 17:27:54 +02:00
Piotr Caban
91296abb63
wininet: Implement urlcache index growing.
2012-04-06 20:13:01 +02:00
Piotr Caban
dab1f7c38e
wininet: Return error code in URLCache_FindFirstFreeEntry function.
2012-04-06 20:12:53 +02:00
Piotr Caban
4254bdbfb2
wininet: Don't reserve space for directory in URL cache entry.
2012-04-06 20:12:49 +02:00
Piotr Caban
c9983b1159
wininet: Don't overwrite locked entry in CommitUrlCacheEntry.
2012-04-06 20:12:44 +02:00
Piotr Caban
d1ecb6d9ba
wininet: Don't delete locked entry in DeleteUrlCacheEntry.
2012-04-06 20:12:40 +02:00
Piotr Caban
299f9e6b47
wininet: Only mark elements as deleted in DeleteUrlCacheEntry function.
2012-04-04 17:57:52 +02:00
Piotr Caban
e4ad164f6e
wininet: Set uninitialized memmory to 0xdeadbeef in cache files.
2012-04-03 17:54:40 +02:00
Piotr Caban
edcc395dac
wininet: Mark empty fields in the same way while hash table is created and element is removed.
2012-04-03 17:54:33 +02:00
Piotr Caban
39bc1faa8f
wininet: Correctly set next hash table offset.
2012-04-03 17:54:28 +02:00
Piotr Caban
dedd42fb4f
wininet: Store element type and state in hash table key (urlcache).
2012-04-03 17:54:24 +02:00
Austin English
9536a9cc1b
wininet: Add a stub for RunOnceUrlCache.
2011-11-02 12:26:48 +01:00
Hans Leidekker
9acd1ef15f
wininet: Consistently use the allocation macros.
2011-06-01 15:16:53 +02:00
Thomas Mullaly
2e61684c51
wininet: Prevent a race condition which results in handles being leaked.
2011-04-22 11:14:09 +02:00
Jacek Caban
354a74e004
wininet: Use wrappers for HeapAlloc calls.
2011-04-21 16:53:42 +02:00
Juan Lang
31abbd7082
wininet: Don't adjust the use counts in RetrieveUrlCacheEntryFile until the function will succeed.
2011-03-14 12:39:28 +01:00
Alexander Scott-Johns
fa19e1bdb3
wininet: Partially implement FreeUrlCacheSpaceW.
2011-03-11 13:27:32 +01:00
Juan Lang
819eb52866
wininet: Reimplement IsUrlCacheEntryExpired.
2011-03-11 11:41:55 +01:00
Juan Lang
cb0a5c9106
wininet: Implement DeleteUrlCacheEntryA/W with a helper function.
2011-03-10 14:27:50 +01:00
Juan Lang
190acb9e26
wininet: Implement sticky url cache entries.
2011-03-10 14:27:35 +01:00
Juan Lang
6617c19c4b
wininet: Treat times of 0 as a special value.
2011-03-10 14:25:06 +01:00
Juan Lang
c4d628cb02
wininet: Implement FindNextUrlCacheEntryW.
2011-03-09 12:28:11 +01:00
Juan Lang
9cd7545c00
wininet: Implement RetrieveUrlCacheEntryStreamW.
2011-03-09 12:27:41 +01:00
Juan Lang
47970d0504
wininet: Set last access time when retrieving a URL cache entry.
2011-03-09 12:25:59 +01:00
Juan Lang
a039754103
wininet: Account for disk space usage when deleting url cache entries.
2011-03-09 12:25:53 +01:00
Juan Lang
7c15dc50a2
wininet: Account for disk space used by cache.
2011-03-09 12:24:14 +01:00
Alexandre Julliard
d790688afa
wininet: Convert file size in cache entry to a large integer.
2011-03-09 12:23:05 +01:00
Juan Lang
f0cd3de5c1
wininet: Change type of cache limit and usage to large integers.
2011-03-09 12:17:54 +01:00
Juan Lang
601b4fa589
wininet: Decrement file use count when deleting a cache entry.
2011-03-08 12:49:52 +01:00
Juan Lang
6e713b3946
wininet: Increment file use count when committing a URL cache entry.
2011-03-08 12:49:43 +01:00
Juan Lang
9d5ca542b3
wininet: Rename a variable based on publicly available information.
2011-03-07 15:02:17 +01:00
Juan Lang
ad45ebf3fa
wininet: Change a type based on publicly available information.
2011-03-07 15:02:04 +01:00
Juan Lang
535b864d0d
wininet: Rename a couple members based on publicy available information.
2011-03-07 15:01:55 +01:00
Juan Lang
47d3814c78
wininet: Rename a couple members to reflect their usage, and remove redundant comments.
2011-03-07 15:01:27 +01:00
Juan Lang
9463a867a8
wininet: Remove outdated comment.
2011-03-04 16:25:59 +01:00
Juan Lang
d2a3832fc3
wininet: Fix off-by-one error.
2011-03-04 16:25:59 +01:00
Juan Lang
75cc509dae
wininet: Support setting the expired time in SetUrlCacheEntryInfo.
2011-03-03 17:47:14 +01:00
Henri Verbeet
6e46e9048f
wininet: Cut of the query string before searching for the filename in CreateUrlCacheEntryW().
...
Apparently it's possible to receive URLs with e.g. slashes in the query
string. I was under the impression those were reserved in the query string,
but e.g. Firefox will happily accept them as well.
2010-09-23 12:06:49 +02:00
Henri Verbeet
7782e81887
wininet: Check URLCache_LocalFileNameToPathW() return values in CreateUrlCacheEntryW().
...
It would be unfortunate if a long file name would cause us to open a file
based on mostly uninitialized data and write the contents of some random
webpage into it.
2010-09-23 12:06:38 +02:00
Piotr Caban
54bdf622a0
wininet: Fixed CreateUrlCacheEntryA implementation.
2010-07-26 09:58:21 +02:00
Gerald Pfeifer
dec98a5997
wininet: Remove variable len which is not really used from CommitUrlCacheEntryInternal.
2010-04-21 15:35:00 +02:00
Mikhail Maroukhine
25306d8be3
wininet: Fix compiler warnings with flag -Wcast-qual.
2010-03-29 12:18:06 +02:00
Mikhail Maroukhine
6e5dfd1fb8
wininet: Fix compiler warnings with flag -Wcast-qual.
2010-03-29 12:11:17 +02:00
Austin English
2387532c3f
wininet: Add stubs for FreeUrlCacheSpace.
2009-11-03 21:17:18 +01:00
Hans Leidekker
09f1ace555
wininet: Add some URL cache tests and make them pass.
2009-09-25 14:39:35 +02:00
Hans Leidekker
784b58a280
wininet: Try harder to find a unique cache file name.
2009-09-25 14:39:22 +02:00
Jacek Caban
1c46be7a76
wininet: Code clean up by using heap_strdup* functions.
2009-07-20 12:20:36 +02:00
Hans Leidekker
7ba8c86f85
wininet: Don't fail if dwReserved is set in CreateUrlCacheEntryW.
2009-06-16 15:41:04 +02:00
Hans Leidekker
67b6c2a4e9
wininet: Add a stub implementation of IncrementUrlCacheHeaderData.
2009-05-13 14:48:24 +02:00
Hans Leidekker
7ddec087f0
wininet: Implement GetDiskInfoA.
2009-05-13 14:47:56 +02:00
Alexandre Julliard
7e11ecdd8d
wininet: Fix a memory leak in the URL cache.
2009-04-27 20:04:45 +02:00
Marcus Meissner
cb80692cf8
wininet: Fixed memory corruption in urlcache.
2009-04-06 11:16:11 +02:00
Vincent Povirk
9da1d844b8
wininet: Stub RegisterUrlCacheNotification.
2009-03-06 12:38:34 +01:00
Hans Leidekker
cd38e554b6
wininet: Add a stub implementation of GetDiskInfoA.
2009-01-29 15:58:58 +01:00
Hans Leidekker
34d4466342
wininet: Strip trailing slashes from filename in CreateUrlCacheEntryW.
2009-01-21 10:22:46 +01:00
Hans Leidekker
b33792235e
wininet: Avoid illegal filenames in CreateUrlCacheEntryW.
2009-01-19 14:20:49 +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
Juan Lang
f50b2c237d
wininet: Fix trace typo.
2008-10-08 12:17:52 +02:00
Juan Lang
9189bf3d72
wininet: Don't call URL_LocalFileNameToPathA when asked for a unicode string and URL_LocalFileNameToPathW fails.
2008-10-08 12:17:45 +02:00
Juan Lang
024c13c174
wininet: Trace the cache file entry's local file name rather than the passed-in cache entry info's local file name, as the caller may have passed a NULL pointer.
2008-10-08 12:17:37 +02:00
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