From c6f812d0e7ba56ed3c743acaf261a21dca0d7497 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sun, 4 Feb 2018 06:35:54 +0100 Subject: [PATCH] Fix for latest Steam breaking fix I wonder if Valve does anything when this one overflows too. --- ArchiSteamFarm/ArchiWebHandler.cs | 2 +- ArchiSteamFarm/MobileAuthenticator.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ArchiSteamFarm/ArchiWebHandler.cs b/ArchiSteamFarm/ArchiWebHandler.cs index e7fc28c52..16f7e6e28 100644 --- a/ArchiSteamFarm/ArchiWebHandler.cs +++ b/ArchiSteamFarm/ArchiWebHandler.cs @@ -828,7 +828,7 @@ namespace ArchiSteamFarm { } } - internal async Task HandleConfirmation(string deviceID, string confirmationHash, uint time, uint confirmationID, ulong confirmationKey, bool accept) { + internal async Task HandleConfirmation(string deviceID, string confirmationHash, uint time, ulong confirmationID, ulong confirmationKey, bool accept) { if (string.IsNullOrEmpty(deviceID) || string.IsNullOrEmpty(confirmationHash) || (time == 0) || (confirmationID == 0) || (confirmationKey == 0)) { Bot.ArchiLogger.LogNullError(nameof(deviceID) + " || " + nameof(confirmationHash) + " || " + nameof(time) + " || " + nameof(confirmationID) + " || " + nameof(confirmationKey)); return null; diff --git a/ArchiSteamFarm/MobileAuthenticator.cs b/ArchiSteamFarm/MobileAuthenticator.cs index e064f495a..0c8ff65a9 100644 --- a/ArchiSteamFarm/MobileAuthenticator.cs +++ b/ArchiSteamFarm/MobileAuthenticator.cs @@ -153,7 +153,7 @@ namespace ArchiSteamFarm { return null; } - if (!uint.TryParse(idString, out uint id) || (id == 0)) { + if (!ulong.TryParse(idString, out ulong id) || (id == 0)) { Bot.ArchiLogger.LogNullError(nameof(id)); return null; } @@ -371,11 +371,11 @@ namespace ArchiSteamFarm { } internal sealed class Confirmation { - internal readonly uint ID; + internal readonly ulong ID; internal readonly ulong Key; internal readonly Steam.ConfirmationDetails.EType Type; - internal Confirmation(uint id, ulong key, Steam.ConfirmationDetails.EType type) { + internal Confirmation(ulong id, ulong key, Steam.ConfirmationDetails.EType type) { if ((id == 0) || (key == 0) || (type == Steam.ConfirmationDetails.EType.Unknown)) { throw new ArgumentNullException(nameof(id) + " || " + nameof(key) + " || " + nameof(type)); }