Commit Graph

9 Commits

Author SHA1 Message Date
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
Francois Gouget 089221fcce wininet/tests: Get the tests running again on Win98. 2008-05-22 11:43:18 +02:00
Lei Zhang 255eebe44d wininet: Handle NULL input for FindCloseUrlCache. 2008-05-08 22:48:30 +02:00
Rob Shearman 64806e642f wininet: Add tests for GetUrlCacheEntryInfoExA.
Factorise out bits of the other tests so that the code is cleaner and 
can be re-used.
2008-04-30 17:00:06 +02: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 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 4041c2015b wininet: Add tests for Find{First,Next}UrlCacheEntryA functions. 2008-03-12 17:57:56 +01:00
Rob Shearman 99e7f7ab6e wininet: Add tests for some URL cache functions. 2008-03-12 17:55:41 +01:00