Update main.cpp (#1900)

This commit is contained in:
zkitefly 2022-12-03 23:22:15 +08:00 committed by GitHub
parent 3843002113
commit e0c97da9fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,14 +156,14 @@ error:
if (isWin7OrLater) {
if (isARM64) {
downloadLink = L"https://aka.ms/download-jdk/microsoft-jdk-17-windows-aarch64.msi";
downloadLink = L"https://docs.hmcl.net/downloads/windows-aarch64.html";
} if (isX64) {
downloadLink = L"https://aka.ms/download-jdk/microsoft-jdk-17-windows-x64.msi";
downloadLink = L"https://docs.hmcl.net/downloads/windows-x64.html";
} else {
downloadLink = L"https://download.bell-sw.com/java/17.0.4.1+1/bellsoft-jre17.0.4.1+1-windows-i586-full.msi";
downloadLink = L"https://docs.hmcl.net/downloads/windows-i586.html";
}
} else {
downloadLink = L"https://www.java.com";
downloadLink = L"https://docs.hmcl.net/downloads/java.html";
}
if (IDOK == MessageBox(NULL, useChinese ? ERROR_PROMPT_ZH : ERROR_PROMPT, useChinese ? ERROR_TITLE_ZH : ERROR_TITLE, MB_ICONWARNING | MB_OKCANCEL)) {