| 1116 | } |
| 1117 | |
| 1118 | int FTPWindow::StreamData(CStreamData * stream, int index) { |
| 1119 | if (!m_currentDropObject) |
| 1120 | return -1; |
| 1121 | if (index != 0) |
| 1122 | return -1; |
| 1123 | |
| 1124 | HANDLE hWriteHandle = stream->GetWriteHandle(); |
| 1125 | int dldRes = m_ftpSession->DownloadFileHandle(m_currentDropObject->GetPath(), hWriteHandle); |
| 1126 | if (dldRes == -1) |
| 1127 | return -1; |
| 1128 | |
| 1129 | return 0; |
| 1130 | } |
| 1131 | |
| 1132 | int FTPWindow::OnEndDnD() { |
| 1133 | if (!m_currentDropObject) |
nothing calls this directly
no test coverage detected