From 9e824f85dd0d17f3411079bf1650db886333b34f Mon Sep 17 00:00:00 2001 From: Roy Merkel Date: Sun, 1 Dec 2024 10:36:01 -0800 Subject: [PATCH] Reverted Memory Domain comparison change as per YoshiRulz. --- .../Base Implementations/MemoryDomain.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Emulation.Common/Base Implementations/MemoryDomain.cs b/src/BizHawk.Emulation.Common/Base Implementations/MemoryDomain.cs index 439c53e0213..2f89aed99fa 100644 --- a/src/BizHawk.Emulation.Common/Base Implementations/MemoryDomain.cs +++ b/src/BizHawk.Emulation.Common/Base Implementations/MemoryDomain.cs @@ -108,7 +108,7 @@ public virtual void BulkPeekByte(Range addresses, byte[] values) if (addresses is null) throw new ArgumentNullException(paramName: nameof(addresses)); if (values is null) throw new ArgumentNullException(paramName: nameof(values)); - if ((long) addresses.Count() > values.Length) + if ((long) addresses.Count() != values.Length) { throw new InvalidOperationException("Invalid length of values array"); }