Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c

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

revision 4880 by yutakapon, Thu Apr 5 16:30:06 2012 UTC revision 4881 by yutakapon, Fri Apr 6 16:39:45 2012 UTC
# Line 3901  static BOOL CALLBACK TTXScpDialog(HWND d Line 3901  static BOOL CALLBACK TTXScpDialog(HWND d
3901                          hWnd = GetDlgItem(dlg, IDC_SENDFILE_EDIT);                          hWnd = GetDlgItem(dlg, IDC_SENDFILE_EDIT);
3902                          SendMessage(hWnd, WM_GETTEXT , sizeof(sendfile), (LPARAM)sendfile);                          SendMessage(hWnd, WM_GETTEXT , sizeof(sendfile), (LPARAM)sendfile);
3903                          if (sendfile[0] != '\0') {                          if (sendfile[0] != '\0') {
3904                                    // 送信パスを取り出し、teraterm.ini も合わせて更新する。
3905                                  hWnd = GetDlgItem(dlg, IDC_SENDFILE_TO);                                  hWnd = GetDlgItem(dlg, IDC_SENDFILE_TO);
3906                                  SendMessage(hWnd, WM_GETTEXT , sizeof(sendfiledir), (LPARAM)sendfiledir);                                        SendMessage(hWnd, WM_GETTEXT , sizeof(sendfiledir), (LPARAM)sendfiledir);      
3907                                  strncpy_s(pvar->ts->ScpSendDir, sizeof(pvar->ts->ScpSendDir), sendfiledir, _TRUNCATE);                                  strncpy_s(pvar->ts->ScpSendDir, sizeof(pvar->ts->ScpSendDir), sendfiledir, _TRUNCATE);
3908    
3909                                  SSH_start_scp(pvar, sendfile, sendfiledir);                                  SSH_start_scp(pvar, sendfile, sendfiledir);
3910                                  //SSH_scp_transaction(pvar, "bigfile30.bin", "", FROMREMOTE);                                  //SSH_scp_transaction(pvar, "bigfile30.bin", "", FROMREMOTE);
3911                                  EndDialog(dlg, 1); // dialog close                                  EndDialog(dlg, 1); // dialog close
# Line 3912  static BOOL CALLBACK TTXScpDialog(HWND d Line 3914  static BOOL CALLBACK TTXScpDialog(HWND d
3914                          return FALSE;                          return FALSE;
3915    
3916                  case IDCANCEL:                  case IDCANCEL:
3917                            // 送信パスを取り出し、teraterm.ini も合わせて更新する。
3918                            hWnd = GetDlgItem(dlg, IDC_SENDFILE_TO);
3919                            SendMessage(hWnd, WM_GETTEXT , sizeof(sendfiledir), (LPARAM)sendfiledir);      
3920                            strncpy_s(pvar->ts->ScpSendDir, sizeof(pvar->ts->ScpSendDir), sendfiledir, _TRUNCATE);
3921    
3922                          EndDialog(dlg, 0); // dialog close                          EndDialog(dlg, 0); // dialog close
3923                          return TRUE;                          return TRUE;
3924    

Legend:
Removed from v.4880  
changed lines
  Added in v.4881

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