From a11b7885e23f28b1e16a595791eafb701ff5f4e1 Mon Sep 17 00:00:00 2001 From: zmatsuo <6488847+zmatsuo@users.noreply.github.com> Date: Sun, 5 May 2024 15:26:04 +0900 Subject: [PATCH] =?UTF-8?q?ttxssh=E3=81=AE=E5=85=B1=E6=9C=89=E3=83=A1?= =?UTF-8?q?=E3=83=A2=E3=83=AA=E3=81=AE=E3=82=AF=E3=83=AD=E3=83=BC=E3=82=BA?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ttssh2/ttxssh/ttxssh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ttssh2/ttxssh/ttxssh.c b/ttssh2/ttxssh/ttxssh.c index 954be5e1a..c52d453cd 100644 --- a/ttssh2/ttxssh/ttxssh.c +++ b/ttssh2/ttxssh/ttxssh.c @@ -5046,6 +5046,7 @@ BOOL WINAPI DllMain(HANDLE hInstance, pvar->ts_SSH->struct_size = sizeof(TS_SSH); if (__mem_mapping != NULL) { CloseHandle(__mem_mapping); + __mem_mapping = NULL; } } break; @@ -5054,8 +5055,8 @@ BOOL WINAPI DllMain(HANDLE hInstance, if (__mem_mapping == NULL) { free(pvar->ts_SSH); } else { + UnmapViewOfFile(__mem_mapping); CloseHandle(__mem_mapping); - UnmapViewOfFile(pvar->ts_SSH); } break; }