Skip to content

Commit a3957d7

Browse files
committed
Correct update check code for YYYYNNN format.
1 parent bb1d8d7 commit a3957d7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Fox/src/Fox.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@ bool CheckUpdates(std::map<unsigned int,std::pair<int,wxString> > &vUpdates)
450450
txtis.ReadLine();//first line
451451
while(!fstream->Eof())
452452
{
453-
unsigned int revisionfix=txtis.Read16();
454-
unsigned int revisionbug=txtis.Read16();
455-
unsigned int severity=txtis.Read16();
453+
unsigned long revisionfix=txtis.Read32();
454+
unsigned long revisionbug=txtis.Read32();
455+
unsigned long severity=txtis.Read32();
456456
wxString reason=txtis.ReadLine();
457457
if((revisionfix>__FOXREVISION__)&&(__FOXREVISION__>revisionbug))
458458
{
@@ -2695,8 +2695,7 @@ void WXCrystMainFrame::OnCheckUpdate(wxCommandEvent& event)
26952695
wUpdates->AppendText(wxString::Format(_T(" #%d: %s\n"),pos->first,pos->second.second.c_str()));
26962696
}
26972697
}
2698-
wUpdates->AppendText(wxString::Format(_T("\n\n => go to http://objcryst.sf.net/Fox/ to get the new version")));
2699-
wUpdates->AppendText(wxString::Format(_T("\n\n See the full changelog at: http://objcryst.sf.net/Fox/Changelog")));
2698+
wUpdates->AppendText(wxString::Format(_T("\n\n => go to https://github.com/vincefn/objcryst/releases to get the new version")));
27002699
}
27012700
else
27022701
{

0 commit comments

Comments
 (0)