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
8b2d3857
Commit
8b2d3857
authored
Oct 24, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Oct 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Fix some test failures on Windows.
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
062c55bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
20 deletions
+2
-20
urlcache.c
dlls/wininet/tests/urlcache.c
+2
-20
No files found.
dlls/wininet/tests/urlcache.c
View file @
8b2d3857
...
...
@@ -877,9 +877,8 @@ static void test_urlcacheW(void)
""
,
{
0
},
{
0
}
},
{
0
,
{
'C'
,
'o'
,
'o'
,
'k'
,
'i'
,
'e'
,
':'
,
' '
,
'u'
,
's'
,
'e'
,
'r'
,
'@'
,
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
0x15b
,
0x107
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
0
},
"Cookie: user@http://t
\xc5\x9b\xc4\x87
.org/"
,
{
0
},
{
0
}
0
,
{
'C'
,
'o'
,
'o'
,
'k'
,
'i'
,
'e'
,
':'
,
' '
,
'u'
,
's'
,
'e'
,
'r'
,
'@'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
0
},
"Cookie: user@test.org/"
,
{
0
},
{
0
}
}
};
static
const
FILETIME
filetime_zero
;
...
...
@@ -893,24 +892,11 @@ static void test_urlcacheW(void)
return
;
}
if
(
ie10_cache
)
{
if
(
!
MultiByteToWideChar
(
CP_ACP
,
0
,
urls
[
6
].
encoded_url
,
-
1
,
urls
[
6
].
url
,
ARRAY_SIZE
(
urls
[
6
].
url
)))
urls
[
6
].
url
[
0
]
=
0
;
trace
(
"converted url in test 6: %s
\n
"
,
wine_dbgstr_w
(
urls
[
6
].
url
));
}
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
urls
);
i
++
)
{
INTERNET_CACHE_ENTRY_INFOA
*
entry_infoA
;
INTERNET_CACHE_ENTRY_INFOW
*
entry_infoW
;
DWORD
size
;
if
(
!
urls
[
i
].
url
[
0
])
{
win_skip
(
"No UTF16 version of url (%d)
\n
"
,
i
);
continue
;
}
SetLastError
(
0xdeadbeef
);
ret
=
CreateUrlCacheEntryW
(
urls
[
i
].
url
,
0
,
NULL
,
bufW
,
0
);
if
(
urls
[
i
].
err
!=
0
)
{
...
...
@@ -937,10 +923,6 @@ static void test_urlcacheW(void)
ret
=
GetUrlCacheEntryInfoA
(
urls
[
i
].
encoded_url
,
NULL
,
&
size
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"%d) GetLastError() = %d
\n
"
,
i
,
GetLastError
());
if
(
!
ret
&&
GetLastError
()
!=
ERROR_INSUFFICIENT_BUFFER
)
{
win_skip
(
"ANSI version of url is incorrect
\n
"
);
continue
;
}
entry_infoA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
ret
=
GetUrlCacheEntryInfoA
(
urls
[
i
].
encoded_url
,
entry_infoA
,
&
size
);
ok
(
ret
,
"%d) GetUrlCacheEntryInfoA failed: %d
\n
"
,
i
,
GetLastError
());
...
...
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