| 1096 | } |
| 1097 | |
| 1098 | int FTPWindow::GetFileDescriptor(FILEDESCRIPTOR * fd, int index) { |
| 1099 | if (!m_currentDropObject) |
| 1100 | return -1; |
| 1101 | if (index != 0) |
| 1102 | return -1; |
| 1103 | |
| 1104 | #define FD_PROGRESSUI 0x00004000 |
| 1105 | |
| 1106 | fd->dwFlags = FD_ATTRIBUTES | FD_CREATETIME | FD_ACCESSTIME | FD_WRITESTIME | FD_FILESIZE | FD_PROGRESSUI; |
| 1107 | fd->nFileSizeLow = m_currentDropObject->GetSize(); |
| 1108 | fd->nFileSizeHigh = 0; |
| 1109 | fd->dwFileAttributes = FILE_ATTRIBUTE_NORMAL; |
| 1110 | fd->ftCreationTime = m_currentDropObject->GetCTime(); |
| 1111 | fd->ftLastAccessTime = m_currentDropObject->GetATime(); |
| 1112 | fd->ftLastWriteTime = m_currentDropObject->GetMTime(); |
| 1113 | lstrcpyn(fd->cFileName, m_currentDropObject->GetLocalName(), MAX_PATH); |
| 1114 | |
| 1115 | return 0; |
| 1116 | } |
| 1117 | |
| 1118 | int FTPWindow::StreamData(CStreamData * stream, int index) { |
| 1119 | if (!m_currentDropObject) |
nothing calls this directly
no test coverage detected