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
ad576b69
Commit
ad576b69
authored
Nov 15, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
640fe968
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
renderer.c
dlls/strmbase/renderer.c
+1
-1
transform.c
dlls/strmbase/transform.c
+2
-2
No files found.
dlls/strmbase/renderer.c
View file @
ad576b69
...
...
@@ -251,7 +251,7 @@ HRESULT WINAPI BaseRenderer_Init(BaseRenderer * This, const IBaseFilterVtbl *Vtb
/* construct input pin */
piInput
.
dir
=
PINDIR_INPUT
;
piInput
.
pFilter
=
&
This
->
filter
.
IBaseFilter_iface
;
lstrcpynW
(
piInput
.
achName
,
wcsInputPinName
,
sizeof
(
piInput
.
achName
)
/
sizeof
(
piInput
.
achName
[
0
]
));
lstrcpynW
(
piInput
.
achName
,
wcsInputPinName
,
ARRAY_SIZE
(
piInput
.
achName
));
hr
=
BaseInputPin_Construct
(
&
BaseRenderer_InputPin_Vtbl
,
sizeof
(
BaseInputPin
),
&
piInput
,
&
input_BaseInputFuncTable
,
&
This
->
filter
.
csFilter
,
NULL
,
(
IPin
**
)
&
This
->
pInputPin
);
...
...
dlls/strmbase/transform.c
View file @
ad576b69
...
...
@@ -210,10 +210,10 @@ static HRESULT TransformFilter_Init(const IBaseFilterVtbl *pVtbl, const CLSID* p
/* construct input pin */
piInput
.
dir
=
PINDIR_INPUT
;
piInput
.
pFilter
=
&
pTransformFilter
->
filter
.
IBaseFilter_iface
;
lstrcpynW
(
piInput
.
achName
,
wcsInputPinName
,
sizeof
(
piInput
.
achName
)
/
sizeof
(
piInput
.
achName
[
0
]
));
lstrcpynW
(
piInput
.
achName
,
wcsInputPinName
,
ARRAY_SIZE
(
piInput
.
achName
));
piOutput
.
dir
=
PINDIR_OUTPUT
;
piOutput
.
pFilter
=
&
pTransformFilter
->
filter
.
IBaseFilter_iface
;
lstrcpynW
(
piOutput
.
achName
,
wcsOutputPinName
,
sizeof
(
piOutput
.
achName
)
/
sizeof
(
piOutput
.
achName
[
0
]
));
lstrcpynW
(
piOutput
.
achName
,
wcsOutputPinName
,
ARRAY_SIZE
(
piOutput
.
achName
));
hr
=
BaseInputPin_Construct
(
&
TransformFilter_InputPin_Vtbl
,
sizeof
(
BaseInputPin
),
&
piInput
,
&
tf_input_BaseInputFuncTable
,
&
pTransformFilter
->
filter
.
csFilter
,
NULL
,
&
pTransformFilter
->
ppPins
[
0
]);
...
...
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