Loweynet
Revisão | 01b81c472f3a38f11ead2351ba0ee7430593642c (tree) |
---|---|
Hora | 2012-01-23 16:30:52 |
Autor | Yuji Tanaka <chibi_honu@user...> |
Commiter | Yuji Tanaka |
Fix bugs that InitCmd isn't sent at reconnection.
@@ -1106,6 +1106,7 @@ int ReConnectTrnSkt(SOCKET *Skt, int *CancelCheckWork) | ||
1106 | 1106 | // if((*Skt = DoConnect(CurHost.HostAdrs, CurHost.UserName, CurHost.PassWord, CurHost.Account, CurHost.Port, CurHost.FireWall, NO, CurHost.Security)) != INVALID_SOCKET) |
1107 | 1107 | if((*Skt = DoConnect(&HostData, CurHost.HostAdrs, CurHost.UserName, CurHost.PassWord, CurHost.Account, CurHost.Port, CurHost.FireWall, NO, CurHost.Security, CancelCheckWork)) != INVALID_SOCKET) |
1108 | 1108 | { |
1109 | + SendInitCommand(CurHost.InitCmd); | |
1109 | 1110 | // AskRemoteCurDir(Path, FMAX_PATH); |
1110 | 1111 | // DoCWD(Path, YES, YES, YES); |
1111 | 1112 | Sts = FFFTP_SUCCESS; |
@@ -1147,6 +1148,7 @@ static int ReConnectSkt(SOCKET *Skt) | ||
1147 | 1148 | // if((*Skt = DoConnect(CurHost.HostAdrs, CurHost.UserName, CurHost.PassWord, CurHost.Account, CurHost.Port, CurHost.FireWall, NO, CurHost.Security)) != INVALID_SOCKET) |
1148 | 1149 | if((*Skt = DoConnect(&CurHost, CurHost.HostAdrs, CurHost.UserName, CurHost.PassWord, CurHost.Account, CurHost.Port, CurHost.FireWall, NO, CurHost.Security, &CancelFlg)) != INVALID_SOCKET) |
1149 | 1150 | { |
1151 | + SendInitCommand(CurHost.InitCmd); | |
1150 | 1152 | AskRemoteCurDir(Path, FMAX_PATH); |
1151 | 1153 | DoCWD(Path, YES, YES, YES); |
1152 | 1154 | Sts = FFFTP_SUCCESS; |