Skip to content

Commit

Permalink
Fixed a major bug in the check for updates code that apparently has b…
Browse files Browse the repository at this point in the history
…een in there for years.
  • Loading branch information
Tom authored and Tom committed Jan 5, 2023
1 parent 0545bf2 commit f50da68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WinApp.ini Updater/Program Modules/Check for Update Code.vb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f50da68

Please sign in to comment.