| 255 | } |
| 256 | |
| 257 | int FTPWindow::OnActivateLocalFile(const TCHAR* filename) { |
| 258 | m_localFileExists = false; |
| 259 | if (!filename) { |
| 260 | SetToolbarState(); |
| 261 | return -1; |
| 262 | } |
| 263 | |
| 264 | BOOL exist = PathFileExists(filename); |
| 265 | if (exist == TRUE) { |
| 266 | BOOL isdir = PathIsDirectory(filename); //Cannot upload directories |
| 267 | m_localFileExists = (isdir == FALSE); |
| 268 | } |
| 269 | |
| 270 | SetToolbarState(); |
| 271 | |
| 272 | return 0; |
| 273 | } |
| 274 | |
| 275 | int FTPWindow::RegisterClass() { |
| 276 | WNDCLASSEX FTPWindowClass{}; |
nothing calls this directly
no outgoing calls
no test coverage detected