diff options
Diffstat (limited to 'CPP/7zip/FileManager/PanelOperations.cpp')
-rwxr-xr-x | CPP/7zip/FileManager/PanelOperations.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CPP/7zip/FileManager/PanelOperations.cpp b/CPP/7zip/FileManager/PanelOperations.cpp index 66993f39..40c03c13 100755 --- a/CPP/7zip/FileManager/PanelOperations.cpp +++ b/CPP/7zip/FileManager/PanelOperations.cpp @@ -45,7 +45,7 @@ struct CThreadDelete return 0; } - static DWORD WINAPI MyThreadFunction(void *param) + static THREAD_FUNC_DECL MyThreadFunction(void *param) { return ((CThreadDelete *)param)->Process(); } @@ -211,8 +211,8 @@ void CPanel::DeleteItemsInternal(CRecordVector<UInt32> &indices) deleter.FolderOperations = folderOperations; deleter.Indices = indices; - CThread thread; - if (!thread.Create(CThreadDelete::MyThreadFunction, &deleter)) + NWindows::CThread thread; + if (thread.Create(CThreadDelete::MyThreadFunction, &deleter) != S_OK) throw 271824; deleter.UpdateCallbackSpec->StartProgressDialog(progressTitle); |