X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/abb74e976384e2023381f41cc96c80746e664f42..b9c15d1092eda519ecaae2d48eb28598fca949f1:/src/common/filefn.cpp diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 293e8e787c..4cfc2036a1 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1003,7 +1003,7 @@ wxCopyFile (const wxString& file1, const wxString& file2, bool overwrite) // instead of our code if available // // NB: 3rd parameter is bFailIfExists i.e. the inverse of overwrite - return ::CopyFile(file1, file2, !overwrite); + return ::CopyFile(file1, file2, !overwrite) != 0; #else // !Win32 wxStructStat fbuf;