]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/debugrpt.cpp
Fix history in wxWebViewIE when using a custom file scheme.
[wxWidgets.git] / src / common / debugrpt.cpp
index 6f0327e59ec96d9770b182f3b72f35d935d85342..a903051fcf1a4e4c6e5b463fe0f103010fe3a87d 100644 (file)
@@ -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();
         // 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
     {
     }
     else // file relative to the report directory
     {