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
fddb3896
Commit
fddb3896
authored
Jun 02, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propsys/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5d3ba908
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
propsys.c
dlls/propsys/tests/propsys.c
+3
-3
No files found.
dlls/propsys/tests/propsys.c
View file @
fddb3896
...
...
@@ -133,7 +133,7 @@ static void test_PSStringFromPropertyKey(void)
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
testcases
)
/
sizeof
(
testcases
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
testcases
);
i
++
)
{
if
(
testcases
[
i
].
psz
)
memcpy
(
testcases
[
i
].
psz
,
fillerW
,
PKEYSTR_MAX
*
sizeof
(
WCHAR
));
...
...
@@ -413,7 +413,7 @@ static void test_PSPropertyKeyFromString(void)
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
testcases
)
/
sizeof
(
testcases
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
testcases
);
i
++
)
{
if
(
testcases
[
i
].
pkey
)
*
testcases
[
i
].
pkey
=
out_init
;
...
...
@@ -480,7 +480,7 @@ static void test_InitPropVariantFromGUIDAsString(void)
InitVariantFromGUIDAsString
(
&
IID_NULL
,
NULL
);
}
for
(
i
=
0
;
i
<
sizeof
(
testcases
)
/
sizeof
(
testcases
[
0
]
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
testcases
);
i
++
)
{
memset
(
&
propvar
,
0
,
sizeof
(
PROPVARIANT
));
hres
=
InitPropVariantFromGUIDAsString
(
testcases
[
i
].
guid
,
&
propvar
);
ok
(
hres
==
S_OK
,
"%d) InitPropVariantFromGUIDAsString returned %x
\n
"
,
i
,
hres
);
...
...
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