From c344eaa8e66eed2d4c69a609d5747e182591cc78 Mon Sep 17 00:00:00 2001 From: uchan-nos Date: Thu, 18 Aug 2022 09:51:06 +0900 Subject: [PATCH] =?UTF-8?q?tedit=20=E3=81=AE=E3=82=B3=E3=83=B3=E3=83=91?= =?UTF-8?q?=E3=82=A4=E3=83=AB=E3=82=A8=E3=83=A9=E3=83=BC=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tedit/tedit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/tedit/tedit.cpp b/apps/tedit/tedit.cpp index 90cd86a27..e7bea04d6 100755 --- a/apps/tedit/tedit.cpp +++ b/apps/tedit/tedit.cpp @@ -404,7 +404,7 @@ DialogHitCheckResult DialogHitCheck(int dx, int dy, int mx, int my) { return DialogHitCheckResult::NONE; } -extern "C" void main(int argc, char** argv) { +int main(int argc, char** argv) { int width = 80, height = 20, tab_size = 8; char* file_name = NULL; bool is_error = false; @@ -841,5 +841,5 @@ extern "C" void main(int argc, char** argv) { } } SyscallCloseWindow(hwnd); - exit(ret); + return ret; }