From c789132e1577701b0c1435574e7b770420c664f5 Mon Sep 17 00:00:00 2001 From: Hourier Date: Sat, 1 Feb 2020 13:20:30 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#37353=20=E3=82=B3=E3=83=B3=E3=83=91?= =?utf8?q?=E3=82=A4=E3=83=AB=E8=AD=A6=E5=91=8A=E4=BF=AE=E6=AD=A3=20/=20Fix?= =?utf8?q?ed=20compilation=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main-win.c | 4 +++- src/util.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main-win.c b/src/main-win.c index 074e2b0f6..dc354d74e 100644 --- a/src/main-win.c +++ b/src/main-win.c @@ -4696,11 +4696,13 @@ static void init_stuff(void) /*! + * todo よく見るとhMutexはちゃんと使われていない……? * @brief (Windows固有)変愚蛮怒が起動済かどうかのチェック */ static bool is_already_running(void) { - HANDLE hMutex = CreateMutex(NULL, TRUE, VERSION_NAME); + HANDLE hMutex; + hMutex = CreateMutex(NULL, TRUE, VERSION_NAME); if (GetLastError() == ERROR_ALREADY_EXISTS) { return TRUE; diff --git a/src/util.c b/src/util.c index 7108e3aa3..5d6957995 100644 --- a/src/util.c +++ b/src/util.c @@ -1882,7 +1882,7 @@ void message_add(concptr str) if (!str) return; - int n = strlen(str); + u32b n = strlen(str); if (n >= MESSAGE_BUF / 4) return; if (n > 80) -- 2.11.0