Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 3342 by maya, Wed Apr 22 15:11:57 2009 UTC revision 3350 by yutakapon, Sun Apr 26 16:13:29 2009 UTC
# Line 8099  static LRESULT CALLBACK ssh_scp_dlg_proc Line 8099  static LRESULT CALLBACK ssh_scp_dlg_proc
8099          return TRUE;          return TRUE;
8100  }  }
8101    
8102    static int is_canceled_window(HWND hd)
8103    {
8104            // 最小化されているときは、キャンセルではない。
8105            if (IsIconic(hd))
8106                    return 0;
8107            // ウィンドウが見えなくなったら、キャンセルされた。
8108            if (IsWindowVisible(hd) == 0)
8109                    return 1;
8110            return 0;
8111    }
8112    
8113  static unsigned __stdcall ssh_scp_thread(void FAR * p)  static unsigned __stdcall ssh_scp_thread(void FAR * p)
8114  {  {
8115          Channel_t *c = (Channel_t *)p;          Channel_t *c = (Channel_t *)p;
# Line 8115  static unsigned __stdcall ssh_scp_thread Line 8126  static unsigned __stdcall ssh_scp_thread
8126    
8127          do {          do {
8128                  // Cancelボタンが押下されたらウィンドウが消える。                  // Cancelボタンが押下されたらウィンドウが消える。
8129                  if (IsWindow(hWnd) == 0)                  if (is_canceled_window(hWnd))
8130                          goto cancel_abort;                          goto cancel_abort;
8131    
8132                  // ファイルから読み込んだデータはかならずサーバへ送信する。                  // ファイルから読み込んだデータはかならずサーバへ送信する。
# Line 8239  static unsigned __stdcall ssh_scp_receiv Line 8250  static unsigned __stdcall ssh_scp_receiv
8250    
8251          for (;;) {          for (;;) {
8252                  // Cancelボタンが押下されたらウィンドウが消える。                  // Cancelボタンが押下されたらウィンドウが消える。
8253                  if (IsWindow(hWnd) == 0)                  if (is_canceled_window(hWnd))
8254                          goto cancel_abort;                          goto cancel_abort;
8255    
8256                  if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) != 0) {                  if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) != 0) {

Legend:
Removed from v.3342  
changed lines
  Added in v.3350

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