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 4495 by yutakapon, Sun Jun 12 16:19:27 2011 UTC revision 4500 by yutakapon, Wed Jun 15 12:23:52 2011 UTC
# Line 7864  static BOOL SSH2_scp_fromremote(PTInstVa Line 7864  static BOOL SSH2_scp_fromremote(PTInstVa
7864    
7865          } else if (c->scp.state == SCP_DATA) {  // payloadの受信          } else if (c->scp.state == SCP_DATA) {  // payloadの受信
7866                  unsigned char *newdata = malloc(buflen);                  unsigned char *newdata = malloc(buflen);
7867                    BOOL ret;
7868                  if (newdata != NULL) {                  if (newdata != NULL) {
7869                          memcpy(newdata, data, buflen);                          memcpy(newdata, data, buflen);
7870                          PostThreadMessage(c->scp.thread_id, WM_RECEIVING_FILE, (WPARAM)newdata, (LPARAM)buflen);                          do {
7871                                    // スレッドがキューを作っていない場合、メッセージポストが失敗することがあるので、
7872                                    // 無限リトライする。MSDNにそうしろと書いてある。
7873                                    // (2011.6.15 yutaka)
7874                                    ret = PostThreadMessage(c->scp.thread_id, WM_RECEIVING_FILE, (WPARAM)newdata, (LPARAM)buflen);
7875                            } while (ret == FALSE);
7876                  }                  }
7877    
7878          } else if (c->scp.state == SCP_CLOSING) {  // EOFの受信          } else if (c->scp.state == SCP_CLOSING) {  // EOFの受信

Legend:
Removed from v.4495  
changed lines
  Added in v.4500

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