[Ttssh2-commit] [6830] 複数バージョンの同時起動の為、共有メモリの名前を変更

svnno****@sourc***** svnno****@sourc*****
2017年 7月 5日 (水) 00:01:24 JST


Revision: 6830
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6830
Author:   doda
Date:     2017-07-05 00:01:24 +0900 (Wed, 05 Jul 2017)
Log Message:
-----------
複数バージョンの同時起動の為、共有メモリの名前を変更

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/ttxssh.c
    trunk/ttssh2/ttxssh/ttxssh.h

-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2017-06-27 03:10:06 UTC (rev 6829)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2017-07-04 15:01:24 UTC (rev 6830)
@@ -5521,7 +5521,7 @@
 		pvar = &InstVar;
 		__mem_mapping =
 			CreateFileMapping((HANDLE) 0xFFFFFFFF, NULL, PAGE_READWRITE, 0,
-			                  sizeof(TS_SSH), "TTSSH_1-4_TS_data");
+			                  sizeof(TS_SSH), TTSSH_FILEMAPNAME);
 		if (__mem_mapping == NULL) {
 			/* fake it. The settings won't be shared, but what the heck. */
 			pvar->ts_SSH = NULL;

Modified: trunk/ttssh2/ttxssh/ttxssh.h
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.h	2017-06-27 03:10:06 UTC (rev 6829)
+++ trunk/ttssh2/ttxssh/ttxssh.h	2017-07-04 15:01:24 UTC (rev 6830)
@@ -327,6 +327,10 @@
 	char subsystem_name[256];
 } TInstVar;
 
+// \x88قȂ\xE9\x83o\x81[\x83W\x83\x87\x83\x93\x82̓\xAF\x8E\x9E\x8BN\x93\xAE\x82Ŗ\xE2\x91\xE8\x82\xF0\x8BN\x82\xB1\x82\xB3\x82Ȃ\xA2\x82悤\x82ɁA
+// TS_SSH \x82\xA8\x82\xE6\x82\xD1 TInstVar \x82̃\x81\x83\x93\x83o\x82\xF0\x95ύX\x82\xB5\x82\xBD\x8Fꍇ\x82͈ȉ\xBA\x82̖\xBC\x91O\x82\xF0\x95ύX\x82\xB7\x82鎖
+#define TTSSH_FILEMAPNAME "TTSSH_2-81_TS_data"
+
 #define LOG_LEVEL_FATAL      5
 #define LOG_LEVEL_ERROR      10
 #define LOG_LEVEL_WARNING    30



Ttssh2-commit メーリングリストの案内