From 2b21f5f48fa21f4cfd81f201fa82df5a6ce62160 Mon Sep 17 00:00:00 2001 From: Glavo Date: Fri, 4 Feb 2022 12:21:35 +0800 Subject: [PATCH] Replace 'java.com' with 'www.microsoft.com/openjdk' --- HMCLauncher/HMCL/lang.h | 4 ++-- HMCLauncher/HMCL/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HMCLauncher/HMCL/lang.h b/HMCLauncher/HMCL/lang.h index 3f8fc72a3..ac2e08b4d 100644 --- a/HMCLauncher/HMCL/lang.h +++ b/HMCLauncher/HMCL/lang.h @@ -1,4 +1,4 @@ #pragma once -#define ERROR_PROMPT L"Java installation cannot be found in this computer, please download it from https://java.com \n" \ -L"未能在这台电脑上找到Java,请从 https://java.com 下载安装Java" \ No newline at end of file +#define ERROR_PROMPT L"Java installation cannot be found in this computer, please download it from https://www.microsoft.com/openjdk \n" \ +L"未能在这台电脑上找到Java,请从 https://www.microsoft.com/openjdk 下载安装Java" \ No newline at end of file diff --git a/HMCLauncher/HMCL/main.cpp b/HMCLauncher/HMCL/main.cpp index aa58359e1..066052afb 100644 --- a/HMCLauncher/HMCL/main.cpp +++ b/HMCLauncher/HMCL/main.cpp @@ -100,6 +100,6 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, RawLaunchJVM(L"javaw", workdir, exeName); MessageBox(NULL, ERROR_PROMPT, L"Error", MB_ICONERROR | MB_OK); - ShellExecute(0, 0, L"https://java.com/", 0, 0, SW_SHOW); + ShellExecute(0, 0, L"https://www.microsoft.com/openjdk", 0, 0, SW_SHOW); return 1; }