Skip to content

Commit

Permalink
ttxsshの共有メモリのクローズ方法を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
zmatsuo committed May 5, 2024
1 parent 799a979 commit a11b788
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ttssh2/ttxssh/ttxssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit a11b788

Please sign in to comment.