diff options
Diffstat (limited to '7zip/UI/Console/UpdateCallbackConsole.cpp')
-rwxr-xr-x | 7zip/UI/Console/UpdateCallbackConsole.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/7zip/UI/Console/UpdateCallbackConsole.cpp b/7zip/UI/Console/UpdateCallbackConsole.cpp index f12e7187..30a5285f 100755 --- a/7zip/UI/Console/UpdateCallbackConsole.cpp +++ b/7zip/UI/Console/UpdateCallbackConsole.cpp @@ -31,6 +31,24 @@ HRESULT CUpdateCallbackConsole::StartScanning() return S_OK; } +HRESULT CUpdateCallbackConsole::CanNotFindError(const wchar_t *name, DWORD systemError) +{ + CantFindFiles.Add(name); + CantFindCodes.Add(systemError); + // m_PercentPrinter.ClosePrint(); + if (!m_WarningsMode) + { + (*OutStream) << endl << endl; + m_PercentPrinter.PrintNewLine(); + m_WarningsMode = true; + } + m_PercentPrinter.PrintString(name); + m_PercentPrinter.PrintString(": WARNING: "); + m_PercentPrinter.PrintString(NError::MyFormatMessageW(systemError)); + m_PercentPrinter.PrintNewLine(); + return S_OK; +} + HRESULT CUpdateCallbackConsole::FinishScanning() { (*OutStream) << endl << endl; |