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
a237867c
Commit
a237867c
authored
May 30, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wer/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4fbd3a7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
dlls/wer/tests/main.c
+3
-3
No files found.
dlls/wer/tests/main.c
View file @
a237867c
...
...
@@ -66,7 +66,7 @@ static void test_WerAddExcludedApplication(void)
ok
(
hr
==
S_OK
,
"got 0x%x (expected S_OK)
\n
"
,
hr
);
/* appname has a path */
res
=
GetWindowsDirectoryW
(
buffer
,
sizeof
(
buffer
)
/
sizeof
(
buffer
[
0
]
));
res
=
GetWindowsDirectoryW
(
buffer
,
ARRAY_SIZE
(
buffer
));
if
(
res
>
0
)
{
/* the last part from the path is added to the inclusion list */
hr
=
WerAddExcludedApplication
(
buffer
,
FALSE
);
...
...
@@ -118,7 +118,7 @@ static void test_WerRemoveExcludedApplication(void)
"got 0x%x (expected E_FAIL or HRESULT_FROM_WIN32(ERROR_ENVVAR_NOT_FOUND))
\n
"
,
hr
);
/* appname has a path */
res
=
GetWindowsDirectoryW
(
buffer
,
sizeof
(
buffer
)
/
sizeof
(
buffer
[
0
]
));
res
=
GetWindowsDirectoryW
(
buffer
,
ARRAY_SIZE
(
buffer
));
if
(
res
>
0
)
{
hr
=
WerRemoveExcludedApplication
(
buffer
,
FALSE
);
ok
((
hr
==
E_FAIL
)
||
(
hr
==
__HRESULT_FROM_WIN32
(
ERROR_ENVVAR_NOT_FOUND
)),
...
...
@@ -223,7 +223,7 @@ static void test_WerReportCreate(void)
/* multiple active reports are possible */
memset
(
table
,
0
,
sizeof
(
table
));
for
(
i
=
0
;
i
<
(
sizeof
(
table
)
/
sizeof
(
table
[
0
])
-
1
);
i
++
)
{
for
(
i
=
0
;
i
<
(
ARRAY_SIZE
(
table
)
-
1
);
i
++
)
{
report
=
(
void
*
)
0xdeadbeef
;
hr
=
WerReportCreate
(
appcrash
,
WerReportCritical
,
NULL
,
&
table
[
i
]);
ok
(
hr
==
S_OK
,
"%02d: got 0x%x and %p (expected S_OK)
\n
"
,
i
,
hr
,
table
[
i
]);
...
...
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