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
f10e6d7e
Commit
f10e6d7e
authored
Jun 27, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Remove superfluous casts of void pointers to other pointer types.
parent
6519a83d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
avidec.c
dlls/quartz/avidec.c
+2
-2
enumregfilters.c
dlls/quartz/enumregfilters.c
+2
-2
filtergraph.c
dlls/quartz/filtergraph.c
+3
-3
filtermapper.c
dlls/quartz/filtermapper.c
+1
-1
regsvr.c
dlls/quartz/regsvr.c
+2
-2
No files found.
dlls/quartz/avidec.c
View file @
f10e6d7e
...
...
@@ -196,13 +196,13 @@ static HRESULT AVIDec_ConnectInput(TransformFilterImpl* pTransformFilter, const
/* Copy bitmap header from media type to 1 for input and 1 for output */
bih_size
=
format
->
bmiHeader
.
biSize
+
format
->
bmiHeader
.
biClrUsed
*
4
;
This
->
pBihIn
=
(
BITMAPINFOHEADER
*
)
CoTaskMemAlloc
(
bih_size
);
This
->
pBihIn
=
CoTaskMemAlloc
(
bih_size
);
if
(
!
This
->
pBihIn
)
{
hr
=
E_OUTOFMEMORY
;
goto
failed
;
}
This
->
pBihOut
=
(
BITMAPINFOHEADER
*
)
CoTaskMemAlloc
(
bih_size
);
This
->
pBihOut
=
CoTaskMemAlloc
(
bih_size
);
if
(
!
This
->
pBihOut
)
{
hr
=
E_OUTOFMEMORY
;
...
...
dlls/quartz/enumregfilters.c
View file @
f10e6d7e
...
...
@@ -67,7 +67,7 @@ HRESULT IEnumRegFiltersImpl_Construct(REGFILTER* pInRegFilters, const ULONG size
for
(
i
=
0
;
i
<
size
;
i
++
)
{
pRegFilters
[
i
].
Clsid
=
pInRegFilters
[
i
].
Clsid
;
pRegFilters
[
i
].
Name
=
(
WCHAR
*
)
CoTaskMemAlloc
((
strlenW
(
pInRegFilters
[
i
].
Name
)
+
1
)
*
sizeof
(
WCHAR
));
pRegFilters
[
i
].
Name
=
CoTaskMemAlloc
((
strlenW
(
pInRegFilters
[
i
].
Name
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
pRegFilters
[
i
].
Name
)
{
while
(
i
)
...
...
@@ -152,7 +152,7 @@ static HRESULT WINAPI IEnumRegFiltersImpl_Next(IEnumRegFilters * iface, ULONG cF
for
(
i
=
0
;
i
<
cFetched
;
i
++
)
{
/* The string in the REGFILTER structure must be allocated in the same block as the REGFILTER structure itself */
ppRegFilter
[
i
]
=
(
REGFILTER
*
)
CoTaskMemAlloc
(
sizeof
(
REGFILTER
)
+
(
strlenW
(
This
->
RegFilters
[
i
].
Name
)
+
1
)
*
sizeof
(
WCHAR
));
ppRegFilter
[
i
]
=
CoTaskMemAlloc
(
sizeof
(
REGFILTER
)
+
(
strlenW
(
This
->
RegFilters
[
i
].
Name
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
ppRegFilter
[
i
])
{
while
(
i
)
...
...
dlls/quartz/filtergraph.c
View file @
f10e6d7e
...
...
@@ -327,11 +327,11 @@ static HRESULT WINAPI GraphBuilder_AddFilter(IGraphBuilder *iface,
int
i
,
j
;
WCHAR
*
wszFilterName
=
NULL
;
int
duplicate_name
=
FALSE
;
TRACE
(
"(%p/%p)->(%p, %s (%p))
\n
"
,
This
,
iface
,
pFilter
,
debugstr_w
(
pName
),
pName
);
wszFilterName
=
(
WCHAR
*
)
CoTaskMemAlloc
(
(
pName
?
strlenW
(
pName
)
+
6
:
5
)
*
sizeof
(
WCHAR
)
);
wszFilterName
=
CoTaskMemAlloc
(
(
pName
?
strlenW
(
pName
)
+
6
:
5
)
*
sizeof
(
WCHAR
)
);
if
(
pName
)
{
/* Check if name already exists */
...
...
dlls/quartz/filtermapper.c
View file @
f10e6d7e
...
...
@@ -706,7 +706,7 @@ static HRESULT WINAPI FilterMapper2_RegisterFilter(
regfilter2
.
dwVersion
=
2
;
regfilter2
.
dwMerit
=
prf2
->
dwMerit
;
regfilter2
.
u
.
s1
.
cPins2
=
prf2
->
u
.
s
.
cPins
;
pregfp2
=
(
REGFILTERPINS2
*
)
CoTaskMemAlloc
(
prf2
->
u
.
s
.
cPins
*
sizeof
(
REGFILTERPINS2
));
pregfp2
=
CoTaskMemAlloc
(
prf2
->
u
.
s
.
cPins
*
sizeof
(
REGFILTERPINS2
));
regfilter2
.
u
.
s1
.
rgPins2
=
pregfp2
;
for
(
i
=
0
;
i
<
prf2
->
u
.
s
.
cPins
;
i
++
)
{
...
...
dlls/quartz/regsvr.c
View file @
f10e6d7e
...
...
@@ -588,7 +588,7 @@ static HRESULT register_filters(struct regsvr_filter const *list)
rf2
.
dwVersion
=
2
;
rf2
.
dwMerit
=
list
->
merit
;
rf2
.
u
.
s1
.
cPins2
=
i
;
rf2
.
u
.
s1
.
rgPins2
=
prfp2
=
(
REGFILTERPINS2
*
)
CoTaskMemAlloc
(
i
*
sizeof
(
REGFILTERPINS2
));
rf2
.
u
.
s1
.
rgPins2
=
prfp2
=
CoTaskMemAlloc
(
i
*
sizeof
(
REGFILTERPINS2
));
if
(
!
prfp2
)
{
hr
=
E_OUTOFMEMORY
;
break
;
...
...
@@ -600,7 +600,7 @@ static HRESULT register_filters(struct regsvr_filter const *list)
for
(
nbmt
=
0
;
list
->
pins
[
i
].
mediatypes
[
nbmt
].
majortype
;
nbmt
++
)
;
/* Allocate a single buffer for regpintypes struct and clsids */
lpMediatype
=
(
REGPINTYPES
*
)
CoTaskMemAlloc
(
nbmt
*
(
sizeof
(
REGPINTYPES
)
+
2
*
sizeof
(
CLSID
)));
lpMediatype
=
CoTaskMemAlloc
(
nbmt
*
(
sizeof
(
REGPINTYPES
)
+
2
*
sizeof
(
CLSID
)));
if
(
!
lpMediatype
)
{
hr
=
E_OUTOFMEMORY
;
break
;
...
...
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