Fix for latest Steam breaking fix

I wonder if Valve does anything when this one overflows too.
This commit is contained in:
JustArchi
2018-02-04 06:35:54 +01:00
parent da50abd648
commit c6f812d0e7
2 changed files with 4 additions and 4 deletions

View File

@@ -828,7 +828,7 @@ namespace ArchiSteamFarm {
}
}
internal async Task<bool?> HandleConfirmation(string deviceID, string confirmationHash, uint time, uint confirmationID, ulong confirmationKey, bool accept) {
internal async Task<bool?> 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;

View File

@@ -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));
}