Make sure to not leak copy handles passed in request (#1772)
* Make sure to not leak copy handles passed in request Following last gdkchan's PR this make sure to close copy handles that are passed by guest when it should. * fix comment copy pasta
This commit is contained in:
@ -28,8 +28,11 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices
|
||||
return NvInternalResult.NotImplemented;
|
||||
}
|
||||
|
||||
public virtual NvInternalResult MapSharedMemory(KSharedMemory sharedMemory, uint argument)
|
||||
public virtual NvInternalResult MapSharedMemory(int sharedMemoryHandle, uint argument)
|
||||
{
|
||||
// Close shared memory immediately as we don't use it.
|
||||
Context.Device.System.KernelContext.Syscall.CloseHandle(sharedMemoryHandle);
|
||||
|
||||
return NvInternalResult.NotImplemented;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user