Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f34ba032
Commit
f34ba032
authored
Nov 26, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Nov 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Fix boolean checks.
parent
74046af7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
urlcache.c
dlls/wininet/tests/urlcache.c
+4
-4
No files found.
dlls/wininet/tests/urlcache.c
View file @
f34ba032
...
...
@@ -217,16 +217,16 @@ static void test_IsUrlCacheEntryExpiredA(void)
* is 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
.
dwHighDateTime
=
0xbaadf00d
;
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
,
"expected time to be unchanged, got (%u,%u)
\n
"
,
ft
.
dwLowDateTime
,
ft
.
dwHighDateTime
);
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,
* and the filetime indicates the last modified time, but a cache entry
...
...
@@ -309,7 +309,7 @@ static void test_IsUrlCacheEntryExpiredA(void)
ft
.
dwLowDateTime
=
0xdeadbeef
;
ft
.
dwHighDateTime
=
0xbaadf00d
;
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
,
"expected time (0,0), got (%u,%u)
\n
"
,
ft
.
dwLowDateTime
,
ft
.
dwHighDateTime
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment