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
c13145af
Commit
c13145af
authored
Jun 02, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fd67e394
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
hlink.c
dlls/hlink/tests/hlink.c
+5
-5
No files found.
dlls/hlink/tests/hlink.c
View file @
c13145af
...
...
@@ -120,7 +120,7 @@ static void test_HlinkIsShortcut(void)
{
NULL
,
E_INVALIDARG
}
};
for
(
i
=
0
;
i
<
sizeof
(
shortcut_test
)
/
sizeof
(
shortcut_test
[
0
]
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
shortcut_test
);
i
++
)
{
hres
=
HlinkIsShortcut
(
shortcut_test
[
i
].
file
);
ok
(
hres
==
shortcut_test
[
i
].
hres
,
"[%d] HlinkIsShortcut returned %08x, expected %08x
\n
"
,
i
,
hres
,
shortcut_test
[
i
].
hres
);
...
...
@@ -651,7 +651,7 @@ static void test_HlinkParseDisplayName(void)
hres
=
HlinkParseDisplayName
(
bctx
,
winehq_urlW
,
FALSE
,
&
eaten
,
&
mon
);
ok
(
hres
==
S_OK
,
"HlinkParseDisplayName failed: %08x
\n
"
,
hres
);
ok
(
eaten
==
sizeof
(
winehq_urlW
)
/
sizeof
(
WCHAR
)
-
1
,
"eaten=%d
\n
"
,
eaten
);
ok
(
eaten
==
ARRAY_SIZE
(
winehq_urlW
)
-
1
,
"eaten=%d
\n
"
,
eaten
);
ok
(
mon
!=
NULL
,
"mon == NULL
\n
"
);
hres
=
IMoniker_GetDisplayName
(
mon
,
bctx
,
0
,
&
name
);
...
...
@@ -667,7 +667,7 @@ static void test_HlinkParseDisplayName(void)
hres
=
HlinkParseDisplayName
(
bctx
,
clsid_nameW
,
FALSE
,
&
eaten
,
&
mon
);
ok
(
hres
==
S_OK
,
"HlinkParseDisplayName failed: %08x
\n
"
,
hres
);
ok
(
eaten
==
sizeof
(
clsid_nameW
)
/
sizeof
(
WCHAR
)
-
1
,
"eaten=%d
\n
"
,
eaten
);
ok
(
eaten
==
ARRAY_SIZE
(
clsid_nameW
)
-
1
,
"eaten=%d
\n
"
,
eaten
);
ok
(
mon
!=
NULL
,
"mon == NULL
\n
"
);
hres
=
IMoniker_IsSystemMoniker
(
mon
,
&
issys
);
...
...
@@ -678,7 +678,7 @@ static void test_HlinkParseDisplayName(void)
hres
=
HlinkParseDisplayName
(
bctx
,
invalid_urlW
,
FALSE
,
&
eaten
,
&
mon
);
ok
(
hres
==
S_OK
,
"HlinkParseDisplayName failed: %08x
\n
"
,
hres
);
ok
(
eaten
==
sizeof
(
invalid_urlW
)
/
sizeof
(
WCHAR
)
-
1
,
"eaten=%d
\n
"
,
eaten
);
ok
(
eaten
==
ARRAY_SIZE
(
invalid_urlW
)
-
1
,
"eaten=%d
\n
"
,
eaten
);
ok
(
mon
!=
NULL
,
"mon == NULL
\n
"
);
hres
=
IMoniker_GetDisplayName
(
mon
,
bctx
,
0
,
&
name
);
...
...
@@ -694,7 +694,7 @@ static void test_HlinkParseDisplayName(void)
hres
=
HlinkParseDisplayName
(
bctx
,
file_urlW
,
FALSE
,
&
eaten
,
&
mon
);
ok
(
hres
==
S_OK
,
"HlinkParseDisplayName failed: %08x
\n
"
,
hres
);
ok
(
eaten
==
sizeof
(
file_urlW
)
/
sizeof
(
WCHAR
)
-
1
,
"eaten=%d
\n
"
,
eaten
);
ok
(
eaten
==
ARRAY_SIZE
(
file_urlW
)
-
1
,
"eaten=%d
\n
"
,
eaten
);
ok
(
mon
!=
NULL
,
"mon == NULL
\n
"
);
hres
=
IMoniker_GetDisplayName
(
mon
,
bctx
,
0
,
&
name
);
...
...
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