mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-06 02:08:28 +02:00
[Hotfix] hid: Prevent out of bounds array access (#5547)
* hid: Prevent out of bounds array access * Cast player to uint * Replace lambda function with local function
This commit is contained in:
@@ -70,6 +70,11 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
||||
|
||||
internal void SetSupportedPlayer(PlayerIndex player, bool supported = true)
|
||||
{
|
||||
if ((uint)player >= _supportedPlayers.Length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_supportedPlayers[(int)player] = supported;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user