mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Fix generic-netf
Again and again!
This commit is contained in:
@@ -217,7 +217,11 @@ public sealed class ArchiWebHandler : IDisposable {
|
||||
yield break;
|
||||
}
|
||||
|
||||
#if NETFRAMEWORK
|
||||
if (response.Content.TotalInventoryCount > 0X7FFFFFC7) {
|
||||
#else
|
||||
if (response.Content.TotalInventoryCount > Array.MaxLength) {
|
||||
#endif
|
||||
throw new InvalidOperationException(nameof(response.Content.TotalInventoryCount));
|
||||
}
|
||||
|
||||
|
||||
@@ -153,7 +153,11 @@ public sealed class WebBrowser : IDisposable {
|
||||
}
|
||||
}
|
||||
|
||||
#if NETFRAMEWORK
|
||||
if (response.Length > 0X7FFFFFC7) {
|
||||
#else
|
||||
if (response.Length > Array.MaxLength) {
|
||||
#endif
|
||||
throw new InvalidOperationException(nameof(response.Length));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user