Commit eba92bd7 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

wininet/tests: Don't crash on W2K and below.

parent b1105d49
...@@ -132,10 +132,14 @@ static void test_RetrieveUrlCacheEntryA(void) ...@@ -132,10 +132,14 @@ static void test_RetrieveUrlCacheEntryA(void)
ok(!ret, "RetrieveUrlCacheEntryFile should have failed\n"); ok(!ret, "RetrieveUrlCacheEntryFile should have failed\n");
ok(GetLastError() == ERROR_INVALID_PARAMETER, "RetrieveUrlCacheEntryFile should have set last error to ERROR_INVALID_PARAMETER instead of %d\n", GetLastError()); ok(GetLastError() == ERROR_INVALID_PARAMETER, "RetrieveUrlCacheEntryFile should have set last error to ERROR_INVALID_PARAMETER instead of %d\n", GetLastError());
SetLastError(0xdeadbeef); if (0)
ret = RetrieveUrlCacheEntryFile(TEST_URL, NULL, NULL, 0); {
ok(!ret, "RetrieveUrlCacheEntryFile should have failed\n"); /* Crashes on Win9x, NT4 and W2K */
ok(GetLastError() == ERROR_INVALID_PARAMETER, "RetrieveUrlCacheEntryFile should have set last error to ERROR_INVALID_PARAMETER instead of %d\n", GetLastError()); SetLastError(0xdeadbeef);
ret = RetrieveUrlCacheEntryFile(TEST_URL, NULL, NULL, 0);
ok(!ret, "RetrieveUrlCacheEntryFile should have failed\n");
ok(GetLastError() == ERROR_INVALID_PARAMETER, "RetrieveUrlCacheEntryFile should have set last error to ERROR_INVALID_PARAMETER instead of %d\n", GetLastError());
}
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
cbCacheEntryInfo = 100000; cbCacheEntryInfo = 100000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment