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
091c7715
Commit
091c7715
authored
Jun 08, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cc906096
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
avisplitter.c
dlls/quartz/tests/avisplitter.c
+2
-2
filtergraph.c
dlls/quartz/tests/filtergraph.c
+3
-3
misc.c
dlls/quartz/tests/misc.c
+4
-4
No files found.
dlls/quartz/tests/avisplitter.c
View file @
091c7715
...
...
@@ -210,7 +210,7 @@ static void test_filesourcefilter(void)
ret
=
GetTempFileNameW
(
temp
,
prefix
,
0
,
path
);
ok
(
ret
,
"GetTempFileNameW failed with error %u
\n
"
,
GetLastError
());
for
(
i
=
0
;
i
<
sizeof
(
tests
)
/
sizeof
(
tests
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
trace
(
"Running test for %s
\n
"
,
tests
[
i
].
label
);
...
...
@@ -280,7 +280,7 @@ static WCHAR *load_resource(const WCHAR *name)
HRSRC
res
;
void
*
ptr
;
GetTempPathW
(
sizeof
(
pathW
)
/
sizeof
(
WCHAR
),
pathW
);
GetTempPathW
(
ARRAY_SIZE
(
pathW
),
pathW
);
lstrcatW
(
pathW
,
name
);
file
=
CreateFileW
(
pathW
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
0
);
...
...
dlls/quartz/tests/filtergraph.c
View file @
091c7715
...
...
@@ -50,7 +50,7 @@ static WCHAR *load_resource(const WCHAR *name)
HRSRC
res
;
void
*
ptr
;
GetTempPathW
(
sizeof
(
pathW
)
/
sizeof
(
WCHAR
),
pathW
);
GetTempPathW
(
ARRAY_SIZE
(
pathW
),
pathW
);
lstrcatW
(
pathW
,
name
);
file
=
CreateFileW
(
pathW
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
0
);
...
...
@@ -1500,14 +1500,14 @@ static HRESULT createtestfilter(const CLSID* pClsid, const TestFilterPinData *pi
pinInfo
.
pFilter
=
&
pTestFilter
->
IBaseFilter_iface
;
if
(
pinInfo
.
dir
==
PINDIR_INPUT
)
{
lstrcpynW
(
pinInfo
.
achName
,
wcsInputPinName
,
sizeof
(
pinInfo
.
achName
)
/
sizeof
(
pinInfo
.
achName
[
0
]
));
lstrcpynW
(
pinInfo
.
achName
,
wcsInputPinName
,
ARRAY_SIZE
(
pinInfo
.
achName
));
hr
=
TestFilter_Pin_Construct
(
&
TestFilter_InputPin_Vtbl
,
&
pinInfo
,
&
mt
,
&
pTestFilter
->
csFilter
,
&
pTestFilter
->
ppPins
[
i
]);
}
else
{
lstrcpynW
(
pinInfo
.
achName
,
wcsOutputPinName
,
sizeof
(
pinInfo
.
achName
)
/
sizeof
(
pinInfo
.
achName
[
0
]
));
lstrcpynW
(
pinInfo
.
achName
,
wcsOutputPinName
,
ARRAY_SIZE
(
pinInfo
.
achName
));
hr
=
TestFilter_Pin_Construct
(
&
TestFilter_OutputPin_Vtbl
,
&
pinInfo
,
&
mt
,
&
pTestFilter
->
csFilter
,
&
pTestFilter
->
ppPins
[
i
]);
}
...
...
dlls/quartz/tests/misc.c
View file @
091c7715
...
...
@@ -169,7 +169,7 @@ static void test_null_renderer_aggregations(void)
};
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
iids
)
/
sizeof
(
iids
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
iids
);
i
++
)
{
test_aggregation
(
CLSID_SystemClock
,
CLSID_NullRenderer
,
IID_IReferenceClock
,
*
iids
[
i
]);
}
...
...
@@ -182,7 +182,7 @@ static void test_video_renderer_aggregations(void)
};
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
iids
)
/
sizeof
(
iids
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
iids
);
i
++
)
{
test_aggregation
(
CLSID_SystemClock
,
CLSID_VideoRenderer
,
IID_IReferenceClock
,
*
iids
[
i
]);
...
...
@@ -199,7 +199,7 @@ static void test_filter_graph_aggregations(void)
};
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
iids
)
/
sizeof
(
iids
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
iids
);
i
++
)
{
test_aggregation
(
CLSID_SystemClock
,
CLSID_FilterGraph
,
IID_IReferenceClock
,
*
iids
[
i
]);
...
...
@@ -213,7 +213,7 @@ static void test_filter_mapper_aggregations(void)
};
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
iids
)
/
sizeof
(
iids
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
iids
);
i
++
)
{
test_aggregation
(
CLSID_SystemClock
,
CLSID_FilterMapper2
,
IID_IReferenceClock
,
*
iids
[
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