Linux/MacOSX: use standard std::shared_ptr instead of our custom implementation which is kept for compatibility with older compilers. We also introduce compatibility code for old compilers that don't define std::unique_ptr

This commit is contained in:
Mounir IDRASSI committed 2020-06-26 01:22:18 +02:00
1 parent 4137c5e15b
commit 5fb407cffe
5 files changed
+30 -7

No files matched your search

+3 -1
View File
@@ -125,7 +125,9 @@ namespace VeraCrypt
firstFragmentWorkItem->ItemCompletedEvent.Wait();
unique_ptr <Exception> itemException = std::move(firstFragmentWorkItem->ItemException);
unique_ptr <Exception> itemException;
if (firstFragmentWorkItem->ItemException.get())
itemException = move_ptr(firstFragmentWorkItem->ItemException);
firstFragmentWorkItem->State.Set (WorkItem::State::Free);
WorkItemCompletedEvent.Signal();