| 459 | } |
| 460 | |
| 461 | void OnInternalError(const tstring &error_msg, const tstring &error_filename, DWORD line) override { |
| 462 | FILE *f; |
| 463 | _wfopen_s(&f, m_log_filename, L"a"); |
| 464 | if (!f) |
| 465 | return; |
| 466 | auto final_msg = wstring_printf(L"Fatal error %s in file %s on line %d\n", error_msg.c_str(), error_filename.c_str(), line); |
| 467 | fwprintf(f, final_msg.c_str()); |
| 468 | fclose(f); |
| 469 | } |
| 470 | |
| 471 | void OnSendCommand(const nsFTP::CCommand &cmd, const nsFTP::CArg &args) override { |
| 472 | FILE *f; |
nothing calls this directly
no test coverage detected