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
9629769f
Commit
9629769f
authored
Nov 06, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineqtdecoder: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7e5b5cb1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
main.c
dlls/wineqtdecoder/main.c
+1
-1
qtdatahandler.c
dlls/wineqtdecoder/qtdatahandler.c
+1
-1
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+1
-1
No files found.
dlls/wineqtdecoder/main.c
View file @
9629769f
...
...
@@ -141,7 +141,7 @@ FactoryTemplate const g_Templates[] = {
}
};
int
g_cTemplates
=
sizeof
(
g_Templates
)
/
sizeof
(
g_Templates
[
0
]
);
int
g_cTemplates
=
ARRAY_SIZE
(
g_Templates
);
static
HINSTANCE
hInst
=
NULL
;
/***********************************************************************
...
...
dlls/wineqtdecoder/qtdatahandler.c
View file @
9629769f
...
...
@@ -361,7 +361,7 @@ static pascal ComponentResult myDataHGetFileName ( DataHandler dh, Str255 str)
int
i
;
IAsyncReader_SyncRead
(
data
->
dataRef
.
pReader
,
0
,
8
,
header
);
for
(
i
=
0
;
i
<
sizeof
(
stream_sigs
)
/
sizeof
(
signature
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
stream_sigs
);
i
++
)
if
(
memcmp
(
header
,
stream_sigs
[
i
].
sig
,
stream_sigs
[
i
].
sig_length
)
==
0
)
{
str
[
0
]
=
strlen
(
stream_sigs
[
i
].
fname
);
...
...
dlls/wineqtdecoder/qtsplitter.c
View file @
9629769f
...
...
@@ -277,7 +277,7 @@ IUnknown * CALLBACK QTSplitter_create(IUnknown *punkout, HRESULT *phr)
piInput
=
&
This
->
pInputPin
.
pin
.
pinInfo
;
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
));
This
->
pInputPin
.
pin
.
IPin_iface
.
lpVtbl
=
&
QT_InputPin_Vtbl
;
This
->
pInputPin
.
pin
.
refCount
=
1
;
This
->
pInputPin
.
pin
.
pConnectedTo
=
NULL
;
...
...
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