Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/filesys_log.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8910 by zmatsuo, Tue Aug 18 15:32:07 2020 UTC revision 8911 by zmatsuo, Tue Aug 18 15:32:15 2020 UTC
# Line 71  enum enumLineEnd { Line 71  enum enumLineEnd {
71    
72  typedef struct {  typedef struct {
73          wchar_t *FullName;          wchar_t *FullName;
         wchar_t *FileName;  
74    
75          HANDLE FileHandle;          HANDLE FileHandle;
76          LONG FileSize, ByteCount;          LONG FileSize, ByteCount;
# Line 141  static BOOL OpenFTDlg_(PFileVar fv) Line 140  static BOOL OpenFTDlg_(PFileVar fv)
140          info.UILanguageFile = ts.UILanguageFile;          info.UILanguageFile = ts.UILanguageFile;
141          info.OpId = OpLog;          info.OpId = OpLog;
142          info.DlgCaption = DlgCaption;          info.DlgCaption = DlgCaption;
143          info.FileName = fv->FileName;          info.FileName = NULL;
144          info.FullName = fv->FullName;          info.FullName = fv->FullName;
145          info.HideDialog = ts.LogHideDialog ? TRUE : FALSE;          info.HideDialog = ts.LogHideDialog ? TRUE : FALSE;
146          info.HMainWin = HVTWin;          info.HMainWin = HVTWin;
# Line 691  static BOOL LogStart(const wchar_t *fnam Line 690  static BOOL LogStart(const wchar_t *fnam
690          PFileVar fv = LogVar;          PFileVar fv = LogVar;
691    
692          fv->FullName = _wcsdup(fname);          fv->FullName = _wcsdup(fname);
         fv->FileName = NULL;  
693          FixLogOption();          FixLogOption();
694    
695          if (ts.LogBinary > 0)          if (ts.LogBinary > 0)
# Line 1163  static INT_PTR CALLBACK OnCommentDlgProc Line 1161  static INT_PTR CALLBACK OnCommentDlgProc
1161                                          size_t len = _SendDlgItemMessageW(hDlgWnd, IDC_EDIT_COMMENT, WM_GETTEXTLENGTH, 0, 0);                                          size_t len = _SendDlgItemMessageW(hDlgWnd, IDC_EDIT_COMMENT, WM_GETTEXTLENGTH, 0, 0);
1162                                          len += 1;                                          len += 1;
1163                                          wchar_t *buf = (wchar_t *)malloc(len * sizeof(wchar_t));                                          wchar_t *buf = (wchar_t *)malloc(len * sizeof(wchar_t));
1164                                          _GetDlgItemTextW(hDlgWnd, IDC_EDIT_COMMENT, buf, len);                                          _GetDlgItemTextW(hDlgWnd, IDC_EDIT_COMMENT, buf, (int)len);
1165                                          FLogWriteStr(buf);                                          FLogWriteStr(buf);
1166                                          FLogWriteStr(L"\n");            // TODO 改行コード                                          FLogWriteStr(L"\n");            // TODO 改行コード
1167                                          free(buf);                                          free(buf);

Legend:
Removed from v.8910  
changed lines
  Added in v.8911

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26