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
2721cff0
Commit
2721cff0
authored
May 18, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: Remove redundant "not NULL" checks of the variables lpParms.
Found by coccicheck.
parent
6178e86a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mciwave.c
dlls/mciwave/mciwave.c
+4
-4
No files found.
dlls/mciwave/mciwave.c
View file @
2721cff0
...
...
@@ -791,12 +791,12 @@ static DWORD WAVE_mciPlay(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt,
}
end
=
wmw
->
ckWaveData
.
cksize
;
if
(
lpParms
&&
(
dwFlags
&
MCI_TO
)
)
{
if
(
dwFlags
&
MCI_TO
)
{
DWORD
position
=
WAVE_ConvertTimeFormatToByte
(
wmw
,
lpParms
->
dwTo
);
if
(
position
>
end
)
return
MCIERR_OUTOFRANGE
;
end
=
position
;
}
if
(
lpParms
&&
(
dwFlags
&
MCI_FROM
)
)
{
if
(
dwFlags
&
MCI_FROM
)
{
DWORD
position
=
WAVE_ConvertTimeFormatToByte
(
wmw
,
lpParms
->
dwFrom
);
if
(
position
>
end
)
return
MCIERR_OUTOFRANGE
;
/* Seek rounds down, so do we. */
...
...
@@ -1033,10 +1033,10 @@ static DWORD WAVE_mciRecord(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt
dwRet
=
WAVE_mciCreateRIFFSkeleton
(
wmw
);
if
(
dwRet
!=
0
)
return
dwRet
;
if
(
lpParms
&&
(
dwFlags
&
MCI_TO
)
)
{
if
(
dwFlags
&
MCI_TO
)
{
end
=
WAVE_ConvertTimeFormatToByte
(
wmw
,
lpParms
->
dwTo
);
}
else
end
=
0xFFFFFFFF
;
if
(
lpParms
&&
(
dwFlags
&
MCI_FROM
)
)
{
if
(
dwFlags
&
MCI_FROM
)
{
DWORD
position
=
WAVE_ConvertTimeFormatToByte
(
wmw
,
lpParms
->
dwFrom
);
if
(
wmw
->
ckWaveData
.
cksize
<
position
)
return
MCIERR_OUTOFRANGE
;
/* Seek rounds down, so do we. */
...
...
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