mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
fix out of handles error
This commit is contained in:
parent
0b52ee6627
commit
0ada047eaf
1 changed files with 3 additions and 3 deletions
|
@ -218,7 +218,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
||||||
{
|
{
|
||||||
long XpadId = Context.RequestData.ReadInt64();
|
long XpadId = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
if (Context.Process.HandleTable.GenerateHandle(XpadIdEvent, out XpadIdEventHandle) == 0)
|
if (Context.Process.HandleTable.GenerateHandle(XpadIdEvent, out XpadIdEventHandle) != KernelResult.Success)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("Out of handles!");
|
throw new InvalidOperationException("Out of handles!");
|
||||||
}
|
}
|
||||||
|
@ -714,7 +714,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
||||||
int NpadId = Context.RequestData.ReadInt32();
|
int NpadId = Context.RequestData.ReadInt32();
|
||||||
long NpadStyleSet = Context.RequestData.ReadInt64();
|
long NpadStyleSet = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
if (Context.Process.HandleTable.GenerateHandle(NpadStyleSetUpdateEvent, out int Handle) == 0)
|
if (Context.Process.HandleTable.GenerateHandle(NpadStyleSetUpdateEvent, out int Handle) != KernelResult.Success)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("Out of handles!");
|
throw new InvalidOperationException("Out of handles!");
|
||||||
}
|
}
|
||||||
|
@ -1356,7 +1356,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
||||||
{
|
{
|
||||||
int PalmaConnectionHandle = Context.RequestData.ReadInt32();
|
int PalmaConnectionHandle = Context.RequestData.ReadInt32();
|
||||||
|
|
||||||
if (Context.Process.HandleTable.GenerateHandle(PalmaOperationCompleteEvent, out int Handle) == 0)
|
if (Context.Process.HandleTable.GenerateHandle(PalmaOperationCompleteEvent, out int Handle) != KernelResult.Success)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("Out of handles!");
|
throw new InvalidOperationException("Out of handles!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue