mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
doom: fix out-of-bounds access of caps->samprs
Change-Id: Icde0146648477dbd0442c67258ff6ae1ff62c994
This commit is contained in:
parent
b5e3789dc1
commit
4cd3d3c519
1 changed files with 3 additions and 2 deletions
|
|
@ -491,7 +491,8 @@ void I_InitSound()
|
|||
break;
|
||||
}
|
||||
if (i == caps->num_samprs)
|
||||
i = SAMPR_44;
|
||||
samplerate = SAMPR_44;
|
||||
else
|
||||
samplerate = caps->samprs[i];
|
||||
|
||||
// Initialize external data (all sounds) at start, keep static.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue