[Boost-bugs] [Boost C++ Libraries] #3551: filesystem::directory_iterator fails on empty directories in Windows Mobile 5

Subject: [Boost-bugs] [Boost C++ Libraries] #3551: filesystem::directory_iterator fails on empty directories in Windows Mobile 5
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-23 18:14:43


#3551: filesystem::directory_iterator fails on empty directories in Windows Mobile
5
-------------------------------------+--------------------------------------
 Reporter: max@… | Owner: bemandawes
     Type: Patches | Status: new
Milestone: | Component: filesystem
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 In Windows Mobile 5 (and possibly other versions), FindFirstFile() returns
 ERROR_NO_MORE_FILES (==18) rather than ERROR_FILE_NOT_FOUND (==2) when
 called on an empty directory. This behavior is also known to occur on
 Win32 in certain circumstances (http://support.microsoft.com/kb/841524).
 Current trunk code throws an exception from the directory_iterator
 constructor.

 I suggest checking for both codes; proposed patch is attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3551>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC