Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8e6d2bab
Commit
8e6d2bab
authored
Oct 03, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fixed failing test.
parent
bc2258d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
urlcache.c
dlls/wininet/tests/urlcache.c
+6
-3
No files found.
dlls/wininet/tests/urlcache.c
View file @
8e6d2bab
...
...
@@ -41,6 +41,7 @@ static BOOL (WINAPI *pUnlockUrlCacheEntryFileA)(LPCSTR,DWORD);
static
char
filenameA
[
MAX_PATH
+
1
];
static
char
filenameA1
[
MAX_PATH
+
1
];
static
BOOL
old_ie
=
FALSE
;
static
void
check_cache_entry_infoA
(
const
char
*
returnedfrom
,
LPINTERNET_CACHE_ENTRY_INFO
lpCacheEntryInfo
)
{
...
...
@@ -137,7 +138,7 @@ static void test_GetUrlCacheEntryInfoExA(void)
/* Unicode version of function seems to ignore 0x200 flag */
ret
=
GetUrlCacheEntryInfoExW
(
test_urlW
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0x200
/*GET_INSTALLED_ENTRY*/
);
ok
(
ret
,
"GetUrlCacheEntryInfoExW failed with error %d
\n
"
,
GetLastError
());
ok
(
ret
||
broken
(
old_ie
&&
!
ret
)
,
"GetUrlCacheEntryInfoExW failed with error %d
\n
"
,
GetLastError
());
ret
=
GetUrlCacheEntryInfoEx
(
test_url
,
lpCacheEntryInfo
,
&
cbCacheEntryInfo
,
NULL
,
NULL
,
NULL
,
0
);
ok
(
ret
,
"GetUrlCacheEntryInfoEx failed with error %d
\n
"
,
GetLastError
());
...
...
@@ -845,10 +846,10 @@ static void test_GetDiskInfoA(void)
ret
=
GetDiskInfoA
(
path
,
NULL
,
NULL
,
NULL
);
error
=
GetLastError
();
ok
(
!
ret
||
broken
(
ret
),
/* < IE7 */
broken
(
old_ie
&&
ret
),
/* < IE7 */
"GetDiskInfoA succeeded
\n
"
);
ok
(
error
==
ERROR_PATH_NOT_FOUND
||
broken
(
error
==
0xdeadbeef
),
/* < IE7 */
broken
(
old_ie
&&
error
==
0xdeadbeef
),
/* < IE7 */
"got %u expected ERROR_PATH_NOT_FOUND
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
...
...
@@ -867,6 +868,8 @@ START_TEST(urlcache)
win_skip
(
"Too old IE (older than 6.0)
\n
"
);
return
;
}
if
(
!
GetProcAddress
(
hdll
,
"InternetGetSecurityInfoByURL"
))
/* < IE7 */
old_ie
=
TRUE
;
pDeleteUrlCacheEntryA
=
(
void
*
)
GetProcAddress
(
hdll
,
"DeleteUrlCacheEntryA"
);
pUnlockUrlCacheEntryFileA
=
(
void
*
)
GetProcAddress
(
hdll
,
"UnlockUrlCacheEntryFileA"
);
...
...
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