mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-23 09:01:21 -08:00
Fix AddSessionObj NRE regression (#5875)
This commit is contained in:
parent
841dd56f4c
commit
7b62f7475e
@ -191,6 +191,9 @@ namespace Ryujinx.HLE.HOS.Services
|
|||||||
AddPort(serverPortHandle, SmObjectFactory);
|
AddPort(serverPortHandle, SmObjectFactory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_wakeEvent = new KEvent(_context);
|
||||||
|
Result result = _selfProcess.HandleTable.GenerateHandle(_wakeEvent.ReadableEvent, out _wakeHandle);
|
||||||
|
|
||||||
InitDone.Set();
|
InitDone.Set();
|
||||||
|
|
||||||
ulong messagePtr = _selfThread.TlsAddress;
|
ulong messagePtr = _selfThread.TlsAddress;
|
||||||
@ -201,9 +204,6 @@ namespace Ryujinx.HLE.HOS.Services
|
|||||||
_selfProcess.CpuMemory.Write(messagePtr + 0x8, heapAddr | ((ulong)PointerBufferSize << 48));
|
_selfProcess.CpuMemory.Write(messagePtr + 0x8, heapAddr | ((ulong)PointerBufferSize << 48));
|
||||||
int replyTargetHandle = 0;
|
int replyTargetHandle = 0;
|
||||||
|
|
||||||
_wakeEvent = new KEvent(_context);
|
|
||||||
Result result = _selfProcess.HandleTable.GenerateHandle(_wakeEvent.ReadableEvent, out _wakeHandle);
|
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
int portHandleCount;
|
int portHandleCount;
|
||||||
|
Loading…
Reference in New Issue
Block a user