diff options
Diffstat (limited to '7zip/FileManager/Resource/BenchmarkDialog/BenchmarkDialog.cpp')
-rwxr-xr-x | 7zip/FileManager/Resource/BenchmarkDialog/BenchmarkDialog.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/7zip/FileManager/Resource/BenchmarkDialog/BenchmarkDialog.cpp b/7zip/FileManager/Resource/BenchmarkDialog/BenchmarkDialog.cpp index cfb976ba..dc050d11 100755 --- a/7zip/FileManager/Resource/BenchmarkDialog/BenchmarkDialog.cpp +++ b/7zip/FileManager/Resource/BenchmarkDialog/BenchmarkDialog.cpp @@ -693,8 +693,14 @@ DWORD CThreadBenchmark::Process() NWindows::NCOM::CPropVariant properties[kNumProps]; properties[0] = UInt32(dictionarySize); properties[1] = bool(multiThread); - RINOK(setCoderProperties->SetCoderProperties(propIDs, - properties, kNumProps)); + HRESULT res = setCoderProperties->SetCoderProperties(propIDs, + properties, kNumProps); + if (res != S_OK) + { + // SyncInfo->Pause(); + MessageBox(0, NError::MyFormatMessage(res), TEXT("7-Zip"), MB_ICONERROR); + return res; + } } if (propStream) |