aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2018-09-28 13:50:15 +0300
committerGitHub <noreply@github.com>2018-09-28 13:50:15 +0300
commit0254a84f90ea03037be15b8fd1f9e0a4be5577e9 (patch)
treec6aba7a3fb585c4b2e892713e9ade410d6509ed1
parent0b52ee66272b673cecebcf9ae9baaf03899e0ee3 (diff)
parent0ada047eafc1286ee1306930aabe699460566723 (diff)
Merge pull request #436 from emmauss/hidhandles
Fix Out of Handles error in HidServer
-rw-r--r--Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs b/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs
index e88ca7e4..0202bd30 100644
--- a/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs
+++ b/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs
@@ -218,7 +218,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
{
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!");
}
@@ -714,7 +714,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
int NpadId = Context.RequestData.ReadInt32();
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!");
}
@@ -1356,7 +1356,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
{
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!");
}