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
2be4d455
Commit
2be4d455
authored
Feb 08, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Get rid of the redundant "expectret" field of TEST_ESCAPEW.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b6ca40f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
url.c
dlls/shlwapi/tests/url.c
+13
-15
No files found.
dlls/shlwapi/tests/url.c
View file @
2be4d455
...
...
@@ -293,39 +293,38 @@ static const TEST_URL_ESCAPE TEST_ESCAPE[] = {
typedef
struct
_TEST_URL_ESCAPEW
{
const
WCHAR
url
[
INTERNET_MAX_URL_LENGTH
];
DWORD
flags
;
HRESULT
expectret
;
const
WCHAR
expecturl
[
INTERNET_MAX_URL_LENGTH
];
const
WCHAR
win7url
[
INTERNET_MAX_URL_LENGTH
];
/* <= Win7 */
const
WCHAR
vistaurl
[
INTERNET_MAX_URL_LENGTH
];
/* <= Vista/2k8 */
}
TEST_URL_ESCAPEW
;
static
const
TEST_URL_ESCAPEW
TEST_ESCAPEW
[]
=
{
{{
' '
,
'<'
,
'>'
,
'"'
,
0
},
URL_ESCAPE_AS_UTF8
,
S_OK
,
{
'%'
,
'2'
,
'0'
,
'%'
,
'3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CAPEW
[
i
].
url
,
ret_url
,
&
size
,
TEST_ESCAPEW
[
i
].
flags
);
ok
(
ret
==
TEST_ESCAPEW
[
i
].
expectret
,
"UrlEscapeW returned 0x%08x instead of 0x%08x for
\"
%s
\"\n
"
,
ret
,
TEST_ESCAPEW
[
i
].
expectret
,
wine_dbgstr_w
(
TEST_ESCAPEW
[
i
].
url
));
ok
(
ret
==
S_OK
,
"Got unexpected hr %#x for %s.
\n
"
,
ret
,
debugstr_w
(
TEST_ESCAPEW
[
i
].
url
));
ok
(
!
lstrcmpW
(
ret_url
,
TEST_ESCAPEW
[
i
].
expecturl
)
||
broken
(
!
lstrcmpW
(
ret_url
,
TEST_ESCAPEW
[
i
].
vistaurl
))
||
broken
(
!
lstrcmpW
(
ret_url
,
TEST_ESCAPEW
[
i
].
win7url
)),
...
...
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