From 2c1a9b7dbd2c3fe6d0bf1e278828a8536cba614f Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Mon, 21 Feb 2022 11:50:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=80=BE=E6=B3=AA=E5=AF=92=E4=B8=BB=E5=88=86?= =?UTF-8?q?=E6=94=AF=E8=A7=A3=E5=AF=86=20=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/函数块.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/函数块.cpp b/test/函数块.cpp index 1c33a81..c443c61 100644 --- a/test/函数块.cpp +++ b/test/函数块.cpp @@ -273,12 +273,12 @@ static int SQloadfile(uint32_t v, const wchar_t* filename, bool printerror) if (SQfread(&uc, 1, sizeof(uc), file) == 0) { SQ__Fclose(file); - return SQ_Throwerror(v, _SC("io error")); + return 1; } if (uc != 0xBF) { SQ__Fclose(file); - return SQ_Throwerror(v, _SC("Unrecognozed ecoding")); + return 1; } func = SQ_io_file_lexfeed_UTF8; break;//UTF-8 ; @@ -316,7 +316,7 @@ static int SQloadfile(uint32_t v, const wchar_t* filename, bool printerror) SQ__Fclose(file); return -1; } - return SQ_Throwerror(v, _SC("cannot open the file")); + return 1; } static int SQdofile(uint32_t v, const wchar_t* filename, bool retval, bool printerror)