Module: wine
Branch: master
Commit: eba92bd7ee5acf472636996789411ed3ab841c7d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eba92bd7ee5acf47263699678…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com>
Date: Wed Oct 8 17:39:37 2008 +0200
wininet/tests: Don't crash on W2K and below.
---
dlls/wininet/tests/urlcache.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/wininet/tests/urlcache.c b/dlls/wininet/tests/urlcache.c
index 44852f7..d135976 100644
--- a/dlls/wininet/tests/urlcache.c
+++ b/dlls/wininet/tests/urlcache.c
@@ -132,10 +132,14 @@ static void test_RetrieveUrlCacheEntryA(void)
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);
- 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());
+ if (0)
+ {
+ /* Crashes on Win9x, NT4 and W2K */
+ 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);
cbCacheEntryInfo = 100000;