wininet: Avoid four instances of "logical not is only applied to the to the left hand side".
This commit is contained in:
parent
d2a91a3aed
commit
4415171ab6
|
@ -218,16 +218,16 @@ static void test_IsUrlCacheEntryExpiredA(void)
|
||||||
* is NULL.
|
* is NULL.
|
||||||
*/
|
*/
|
||||||
ret = IsUrlCacheEntryExpiredA(NULL, 0, NULL);
|
ret = IsUrlCacheEntryExpiredA(NULL, 0, NULL);
|
||||||
ok(!ret == ie10_cache, "IsUrlCacheEntryExpiredA returned %x\n", ret);
|
ok(ret != ie10_cache, "IsUrlCacheEntryExpiredA returned %x\n", ret);
|
||||||
ft.dwLowDateTime = 0xdeadbeef;
|
ft.dwLowDateTime = 0xdeadbeef;
|
||||||
ft.dwHighDateTime = 0xbaadf00d;
|
ft.dwHighDateTime = 0xbaadf00d;
|
||||||
ret = IsUrlCacheEntryExpiredA(NULL, 0, &ft);
|
ret = IsUrlCacheEntryExpiredA(NULL, 0, &ft);
|
||||||
ok(!ret == ie10_cache, "IsUrlCacheEntryExpiredA returned %x\n", ret);
|
ok(ret != ie10_cache, "IsUrlCacheEntryExpiredA returned %x\n", ret);
|
||||||
ok(ft.dwLowDateTime == 0xdeadbeef && ft.dwHighDateTime == 0xbaadf00d,
|
ok(ft.dwLowDateTime == 0xdeadbeef && ft.dwHighDateTime == 0xbaadf00d,
|
||||||
"expected time to be unchanged, got (%u,%u)\n",
|
"expected time to be unchanged, got (%u,%u)\n",
|
||||||
ft.dwLowDateTime, ft.dwHighDateTime);
|
ft.dwLowDateTime, ft.dwHighDateTime);
|
||||||
ret = IsUrlCacheEntryExpiredA(test_url, 0, NULL);
|
ret = IsUrlCacheEntryExpiredA(test_url, 0, NULL);
|
||||||
ok(!ret == ie10_cache, "IsUrlCacheEntryExpiredA returned %x\n", ret);
|
ok(ret != ie10_cache, "IsUrlCacheEntryExpiredA returned %x\n", ret);
|
||||||
|
|
||||||
/* The return value should indicate whether the URL is expired,
|
/* The return value should indicate whether the URL is expired,
|
||||||
* and the filetime indicates the last modified time, but a cache entry
|
* and the filetime indicates the last modified time, but a cache entry
|
||||||
|
@ -310,7 +310,7 @@ static void test_IsUrlCacheEntryExpiredA(void)
|
||||||
ft.dwLowDateTime = 0xdeadbeef;
|
ft.dwLowDateTime = 0xdeadbeef;
|
||||||
ft.dwHighDateTime = 0xbaadf00d;
|
ft.dwHighDateTime = 0xbaadf00d;
|
||||||
ret = IsUrlCacheEntryExpiredA(uncached_url, 0, &ft);
|
ret = IsUrlCacheEntryExpiredA(uncached_url, 0, &ft);
|
||||||
ok(!ret == ie10_cache, "IsUrlCacheEntryExpiredA returned %x\n", ret);
|
ok(ret != ie10_cache, "IsUrlCacheEntryExpiredA returned %x\n", ret);
|
||||||
ok(!ft.dwLowDateTime && !ft.dwHighDateTime,
|
ok(!ft.dwLowDateTime && !ft.dwHighDateTime,
|
||||||
"expected time (0,0), got (%u,%u)\n",
|
"expected time (0,0), got (%u,%u)\n",
|
||||||
ft.dwLowDateTime, ft.dwHighDateTime);
|
ft.dwLowDateTime, ft.dwHighDateTime);
|
||||||
|
|
Loading…
Reference in New Issue