From f50da68592c2ae9f1a60b384cbf7fac5e48b7a22 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 4 Jan 2023 22:05:56 -0500 Subject: [PATCH] Fixed a major bug in the check for updates code that apparently has been in there for years. --- WinApp.ini Updater/Program Modules/Check for Update Code.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WinApp.ini Updater/Program Modules/Check for Update Code.vb b/WinApp.ini Updater/Program Modules/Check for Update Code.vb index f617ec9..9885263 100644 --- a/WinApp.ini Updater/Program Modules/Check for Update Code.vb +++ b/WinApp.ini Updater/Program Modules/Check for Update Code.vb @@ -95,9 +95,9 @@ Class CheckForUpdatesClass Return ProcessUpdateXMLResponse.noUpdateNeeded Else ' First we do a check of the version, if it's not equal we simply return a newVersion value. - If Not remoteVersion.Equals(versionStringWithoutBuild) Then + If Not remoteVersion.ToString.Equals(versionStringWithoutBuild) Then ' Checks to see if the remote version is less than the current version. - If remoteVersion < versionStringWithoutBuild Then + If remoteVersion < Double.Parse(versionStringWithoutBuild) Then ' This is weird, the remote build is less than the current build so we return a newerVersionThanWebSite value. Return ProcessUpdateXMLResponse.newerVersionThanWebSite End If