wininet/tests(1/2): Test CommitUrlCacheEntry with the original URL parameter

Piotr Caban piotr.caban at gmail.com
Tue Oct 2 04:16:51 CDT 2012


On 10/02/12 03:30, Juan Lang wrote:
+    /* On the other hande, GetUrlCacheEntryInfoEx allows you to query the
+     * original URL.
+     */
There's a typo, should be "On the other hand".

+    /* Strangely, you can create a cache entry redirected to itself. */
+    ret = CreateUrlCacheEntry(test_url, 0, "html", filenameA, 0);
+    ok(ret, "CreateUrlCacheEntry failed with error %d\n", GetLastError());
+    create_and_write_file(filenameA, &zero_byte, sizeof(zero_byte));
+    ret = CommitUrlCacheEntry(test_url, filenameA, filetime_zero, 
filetime_zero,
+            NORMAL_CACHE_ENTRY, NULL, 0, NULL, test_url);
In this case original url is ignored. Probably it's a more appropriate 
comment.

Your test is leaving an entry in index.dat file. Please remove 
test_original_url entry from cache after testing it.

Cheers,
Piotr



More information about the wine-devel mailing list