if it is NOT 1 or 3 (so if it is not 1 AND if it is not 3)
This commit is contained in:
parent
7d8cec626c
commit
82b4874273
@ -496,7 +496,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator
|
||||
uint protocolValue = context.RequestData.ReadUInt32();
|
||||
|
||||
// On NX only input value 1 or 3 is allowed, with an error being thrown otherwise.
|
||||
if (protocolValue != 1 && protocolValue != 3)
|
||||
if (!(protocolValue == 1 || protocolValue == 3))
|
||||
{
|
||||
throw new ArgumentException($"{GetType().FullName}: Protocol value is not 1 or 3!! Protocol value: {protocolValue}");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user