HIPC: Fix reply possibly also receiving one request (#4232)

This commit is contained in:
gdkchan 2023-01-08 15:34:49 -03:00 committed by GitHub
parent 35b5f87f8f
commit 596694d7a9
2 changed files with 2 additions and 14 deletions

View file

@ -100,14 +100,6 @@ namespace Ryujinx.Horizon.Common
}
}
public void AbortOnFailureUnless(Result result, Result result2)
{
if (this != Success && this != result && this != result2)
{
ThrowInvalidResult();
}
}
private void ThrowInvalidResult()
{
throw new InvalidResultException(this);