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
fdb68281
Commit
fdb68281
authored
Jul 11, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Fix some unsigned comparison < 0 warnings.
parent
a5d28014
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
mixer.c
dlls/winealsa.drv/mixer.c
+8
-8
No files found.
dlls/winealsa.drv/mixer.c
View file @
fdb68281
...
...
@@ -607,7 +607,7 @@ static mixer* MIX_GetMix(UINT wDevID)
{
mixer
*
mmixer
;
if
(
wDevID
<
0
||
wDevID
>=
cards
)
if
(
wDevID
>=
cards
)
{
WARN
(
"Invalid mixer id: %d
\n
"
,
wDevID
);
return
NULL
;
...
...
@@ -888,7 +888,7 @@ static DWORD MIX_GetControlDetails(UINT wDevID, LPMIXERCONTROLDETAILS mctrld, DW
if
(
!
mmixer
)
return
MMSYSERR_BADDEVICEID
;
if
(
line
<
0
||
line
>=
mmixer
->
chans
||
!
mmixer
->
controls
[
ctrl
].
enabled
)
if
(
line
>=
mmixer
->
chans
||
!
mmixer
->
controls
[
ctrl
].
enabled
)
return
MIXERR_INVALCONTROL
;
ct
=
&
mmixer
->
controls
[
ctrl
];
...
...
@@ -1095,7 +1095,7 @@ static DWORD MIX_SetControlDetails(UINT wDevID, LPMIXERCONTROLDETAILS mctrld, DW
if
(
!
mmixer
)
return
MMSYSERR_BADDEVICEID
;
if
(
line
<
0
||
line
>=
mmixer
->
chans
)
if
(
line
>=
mmixer
->
chans
)
{
WARN
(
"Invalid line id: %d not in range of 0-%d
\n
"
,
line
,
mmixer
->
chans
-
1
);
return
MMSYSERR_INVALPARAM
;
...
...
@@ -1343,7 +1343,7 @@ static DWORD MIX_GetLineInfo(UINT wDevID, LPMIXERLINEW Ml, DWORD_PTR flags)
}
case
MIXER_GETLINEINFOF_LINEID
:
if
(
Ml
->
dwLineID
<
0
||
Ml
->
dwLineID
>=
mmixer
->
chans
)
if
(
Ml
->
dwLineID
>=
mmixer
->
chans
)
return
MIXERR_INVALLINE
;
TRACE
(
"MIXER_GETLINEINFOF_LINEID %d
\n
"
,
Ml
->
dwLineID
);
...
...
@@ -1363,7 +1363,7 @@ static DWORD MIX_GetLineInfo(UINT wDevID, LPMIXERLINEW Ml, DWORD_PTR flags)
break
;
case
MIXER_GETLINEINFOF_DESTINATION
:
if
(
Ml
->
dwDestination
<
0
||
Ml
->
dwDestination
>=
mmixer
->
dests
)
if
(
Ml
->
dwDestination
>=
mmixer
->
dests
)
{
WARN
(
"dest %d out of bounds
\n
"
,
Ml
->
dwDestination
);
return
MIXERR_INVALLINE
;
...
...
@@ -1375,13 +1375,13 @@ static DWORD MIX_GetLineInfo(UINT wDevID, LPMIXERLINEW Ml, DWORD_PTR flags)
break
;
case
MIXER_GETLINEINFOF_SOURCE
:
if
(
Ml
->
dwDestination
<
0
||
Ml
->
dwDestination
>=
mmixer
->
dests
)
if
(
Ml
->
dwDestination
>=
mmixer
->
dests
)
{
WARN
(
"dest %d for source out of bounds
\n
"
,
Ml
->
dwDestination
);
return
MIXERR_INVALLINE
;
}
if
(
Ml
->
dwSource
<
0
||
Ml
->
dwSource
>=
getsrccntfromchan
(
mmixer
,
Ml
->
dwDestination
))
if
(
Ml
->
dwSource
>=
getsrccntfromchan
(
mmixer
,
Ml
->
dwDestination
))
{
WARN
(
"src %d out of bounds
\n
"
,
Ml
->
dwSource
);
return
MIXERR_INVALLINE
;
...
...
@@ -1455,7 +1455,7 @@ static DWORD MIX_GetLineControls(UINT wDevID, LPMIXERLINECONTROLSW mlc, DWORD_PT
if
(
flags
==
MIXER_GETLINECONTROLSF_ONEBYID
)
mlc
->
dwLineID
=
mlc
->
u
.
dwControlID
/
CONTROLSPERLINE
;
if
(
mlc
->
dwLineID
<
0
||
mlc
->
dwLineID
>=
mmixer
->
chans
)
if
(
mlc
->
dwLineID
>=
mmixer
->
chans
)
{
TRACE
(
"Invalid dwLineID %d
\n
"
,
mlc
->
dwLineID
);
return
MIXERR_INVALLINE
;
...
...
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