Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/FileManager/PanelCrc.cpp')
-rwxr-xr-xCPP/7zip/FileManager/PanelCrc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/CPP/7zip/FileManager/PanelCrc.cpp b/CPP/7zip/FileManager/PanelCrc.cpp
index 7a190840..5e49390f 100755
--- a/CPP/7zip/FileManager/PanelCrc.cpp
+++ b/CPP/7zip/FileManager/PanelCrc.cpp
@@ -253,7 +253,7 @@ struct CThreadCrc
return 0;
}
- static DWORD WINAPI MyThreadFunction(void *param)
+ static THREAD_FUNC_DECL MyThreadFunction(void *param)
{
return ((CThreadCrc *)param)->Process();
}
@@ -303,9 +303,9 @@ void CApp::CalculateCrc()
progressDialog.MainTitle = progressWindowTitle;
progressDialog.MainAddTitle = title + UString(L" ");
- CThread thread;
- if (!thread.Create(CThreadCrc::MyThreadFunction, &combiner))
- throw 271824;
+ NWindows::CThread thread;
+ if (thread.Create(CThreadCrc::MyThreadFunction, &combiner) != S_OK)
+ return;
progressDialog.Create(title, _window);
if (combiner.Result != S_OK)