X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..f239a20092359e3c914adb79bd39f3f5d2b2e06f:/src/common/debugrpt.cpp?ds=inline diff --git a/src/common/debugrpt.cpp b/src/common/debugrpt.cpp index 6f0327e59e..a903051fcf 100644 --- a/src/common/debugrpt.cpp +++ b/src/common/debugrpt.cpp @@ -268,8 +268,10 @@ wxDebugReport::AddFile(const wxString& filename, const wxString& description) // we need to copy the file to the debug report directory: give it the // same name there name = fn.GetFullName(); - wxCopyFile(fn.GetFullPath(), - wxFileName(GetDirectory(), name).GetFullPath()); + + if (!wxCopyFile(fn.GetFullPath(), + wxFileName(GetDirectory(), name).GetFullPath())) + return; } else // file relative to the report directory {