From 6920d6256392a0124e56432db17c95b0cf740949 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Wed, 20 Mar 2019 11:13:51 +0900 Subject: [PATCH] Fix the process of compilation error --- README.md | 3 ++- README.txt | 3 ++- READMEJP.txt | 3 ++- src/RisohEditor.cpp | 6 ++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3e1d2b09..c0cc09eb 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,9 @@ It's a special message compiler I made. See mcdx/MESSAGETABLEDX.md for details. - Improve Italian translation. - GUI adjustment. - Fix "Clone In New Language". - * 2019.XX.YY ver.5.1.7 + * 2019.03.20 ver.5.1.7 - Add PBS_MARQUEE and PBS_SMOOTHREVERSE styles. + - Fix the process of compilation error. ## Contact Us diff --git a/README.txt b/README.txt index c1bc5075..8cc35046 100644 --- a/README.txt +++ b/README.txt @@ -90,8 +90,9 @@ Question 4. What is mcdx? - Improve Italian translation. - GUI adjustment. - Fix "Clone In New Language". - * 2019.XX.YY ver.5.1.7 + * 2019.03.20 ver.5.1.7 - Add PBS_MARQUEE and PBS_SMOOTHREVERSE styles. + - Fix the process of compilation error. ///////////////////////////////////////////////////// // Katayama Hirofumi MZ (katahiromz) [A.N.T.] diff --git a/READMEJP.txt b/READMEJP.txt index cb20d20c..dc877149 100644 --- a/READMEJP.txt +++ b/READMEJP.txt @@ -409,8 +409,9 @@ イタリア語の改良。 GUIの調整。 「別の言語で複製」を修正。 - 2019.XX.YY ver.5.1.7 + 2019.03.20 ver.5.1.7 PBS_MARQUEEとPBS_SMOOTHREVERSEスタイルを追加。 + コンパイルエラーの処理を修正。 ///////////////////////////////////////////////////// // 片山博文MZ (katahiromz) [A.N.T.] diff --git a/src/RisohEditor.cpp b/src/RisohEditor.cpp index 0f378f71..7ff73d94 100644 --- a/src/RisohEditor.cpp +++ b/src/RisohEditor.cpp @@ -5954,6 +5954,12 @@ BOOL MMainWnd::CompileParts(MStringA& strOutput, const MIdOrString& type, const res.delete_all(); } } + else + { + bOK = FALSE; + // error message + strOutput = MWideToAnsi(CP_ACP, LoadStringDx(IDS_COMPILEERROR)); + } } else {