$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r58193 - trunk/libs/filesystem/src
From: bdawes_at_[hidden]
Date: 2009-12-06 11:55:45
Author: bemandawes
Date: 2009-12-06 11:55:44 EST (Sun, 06 Dec 2009)
New Revision: 58193
URL: http://svn.boost.org/trac/boost/changeset/58193
Log:
Fix #3551 for Windows Mobile
Text files modified:
trunk/libs/filesystem/src/operations.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/libs/filesystem/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/src/operations.cpp (original)
+++ trunk/libs/filesystem/src/operations.cpp 2009-12-06 11:55:44 EST (Sun, 06 Dec 2009)
@@ -903,7 +903,9 @@
== INVALID_HANDLE_VALUE )
{
handle = 0;
- return error_code( ::GetLastError() == ERROR_FILE_NOT_FOUND
+ return error_code( (::GetLastError() == ERROR_FILE_NOT_FOUND
+ // Windows Mobile returns ERROR_NO_MORE_FILES; see ticket #3551
+ || ::GetLastError() == ERROR_NO_MORE_FILES)
? 0 : ::GetLastError(), system_category );
}
target = data.cFileName;