X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/191d6608f465c8d0f263bd676adea5aec9593984..2f30930a092c85f3255f8a0d79873cde438b0445:/src/common/dircmn.cpp diff --git a/src/common/dircmn.cpp b/src/common/dircmn.cpp index 89ec5076e2..79ce97e0a3 100644 --- a/src/common/dircmn.cpp +++ b/src/common/dircmn.cpp @@ -347,8 +347,7 @@ wxULongLong wxDir::GetTotalSize(const wxString &dirname, wxArrayString *filesSki return wxInvalidSize; wxDirTraverserSumSize traverser; - if (dir.Traverse(traverser) == (size_t)-1 || - traverser.GetTotalSize() == 0) + if (dir.Traverse(traverser) == (size_t)-1 ) return wxInvalidSize; if (filesSkipped)