• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision7306 (tree)
Time2018-12-06 18:34:44
Authorzmatsuo

Log Message

VS2005でコンパイルできるよう修正

Change Summary

Incremental Difference

--- trunk/teraterm/ttpcmn/ttcmn.c (revision 7305)
+++ trunk/teraterm/ttpcmn/ttcmn.c (revision 7306)
@@ -2564,6 +2564,7 @@
25642564 char tmp[32];
25652565 HANDLE hMap;
25662566 BOOL first_instance;
2567+ TMap *map;
25672568 _snprintf_s(tmp, sizeof(tmp), _TRUNCATE, i == 0 ? "%s" : "%s_%d", TT_FILEMAPNAME, i);
25682569 hMap = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE,
25692570 0, sizeof(TMap), tmp);
@@ -2573,7 +2574,7 @@
25732574
25742575 first_instance = (GetLastError() != ERROR_ALREADY_EXISTS);
25752576
2576- TMap *map = (TMap *)MapViewOfFile(hMap,FILE_MAP_WRITE,0,0,0);
2577+ map = (TMap *)MapViewOfFile(hMap,FILE_MAP_WRITE,0,0,0);
25772578 if (map == NULL) {
25782579 return FALSE;
25792580 }
Show on old repository browser