From: Stefan Csomor Date: Sat, 5 Nov 2005 07:39:46 +0000 (+0000) Subject: added permission error to the 'expected' error codes, removed assert, as this leads... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3ca57155b4aba03e1aaff93bf62f1346ae649cc0?hp=743e24aa72ed41a56884698802e3b31ca9f26b31 added permission error to the 'expected' error codes, removed assert, as this leads to problems in wxPython otherwise, and getting another error essentially means we cannot continue iterating.. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/dirmac.cpp b/src/mac/carbon/dirmac.cpp index f029c2bd38..8669577a49 100644 --- a/src/mac/carbon/dirmac.cpp +++ b/src/mac/carbon/dirmac.cpp @@ -154,10 +154,13 @@ bool wxDirData::Read(wxString *filename) UInt32 fetched = 0; err = FSGetCatalogInfoBulk( m_iterator, 1, &fetched, NULL, kFSCatInfoNodeFlags | kFSCatInfoFinderInfo , &catalogInfo , &fileRef, NULL, &uniname ); + + // expected error codes + if ( errFSNoMoreItems == err ) return false ; - - wxASSERT( noErr == err ) ; + if ( afpAccessDenied == err ) + return false ; if ( noErr != err ) break ;