Skip to content

Commit 50e09d9

Browse files
committed
Merged revision(s) 24800 from trunk/OpenMPT:
[Fix] Update Check: Assume that updates are unsupported if we cannot parse the Wine version. ........ git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.32@24801 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent 12f5f21 commit 50e09d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mptrack/UpdateCheck.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ static UpdateInfo GetBestDownload(const Update::versions &versions)
306306
download_supported = false;
307307
}
308308

309+
if(mpt::OS::Windows::IsWine() && !theApp.GetWineVersion()->Version().IsValid())
310+
{
311+
download_supported = false;
312+
}
309313
if(mpt::OS::Windows::IsWine() && theApp.GetWineVersion()->Version().IsValid())
310314
{
311315
if(theApp.GetWineVersion()->Version().IsBefore(mpt::OS::Wine::Version(mpt::saturate_cast<uint8>(download.required_windows_version->wine_major), mpt::saturate_cast<uint8>(download.required_windows_version->wine_minor), mpt::saturate_cast<uint8>(download.required_windows_version->wine_update))))

0 commit comments

Comments
 (0)