From 278b40c50d077bd84bc56762c9efc417d836c484 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 4 Jun 2020 23:45:28 -0400 Subject: [PATCH] Bug2442: Windows crash when import exhausts disk space... ... Fixed by changing a move constructor to a copy constructor for the exception object. Not sure why that should be needed, according to the C++ standard, but so it is with the MSVC compiler. --- src/FileException.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FileException.h b/src/FileException.h index 48b942e84..bb2253e3f 100644 --- a/src/FileException.h +++ b/src/FileException.h @@ -25,8 +25,8 @@ public: , cause{ cause_ }, fileName{ fileName_ }, renameTarget{ renameTarget_ } {} - FileException(FileException&& that) - : MessageBoxException(std::move(that)) + FileException( const FileException &that ) + : MessageBoxException( that ) , cause{ that.cause } , fileName{ that.fileName } , renameTarget{ that.renameTarget }