Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-09-26 14:11:28


Author: bemandawes
Date: 2007-09-26 14:11:27 EDT (Wed, 26 Sep 2007)
New Revision: 39556
URL: http://svn.boost.org/trac/boost/changeset/39556

Log:
Win64 returns ERROR_BAD_PATHNAME for //nosuch, while Win32 returns ERROR_BAD_NETPATH
Text files modified:
   trunk/libs/filesystem/src/operations.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/libs/filesystem/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/src/operations.cpp (original)
+++ trunk/libs/filesystem/src/operations.cpp 2007-09-26 14:11:27 EDT (Wed, 26 Sep 2007)
@@ -192,7 +192,8 @@
         || (ec.value() == ERROR_PATH_NOT_FOUND)
         || (ec.value() == ERROR_INVALID_NAME) // "tools/jam/src/:sys:stat.h", "//foo"
         || (ec.value() == ERROR_INVALID_PARAMETER) // ":sys:stat.h"
- || (ec.value() == ERROR_BAD_NETPATH))
+ || (ec.value() == ERROR_BAD_PATHNAME) // "//nosuch" on Win64
+ || (ec.value() == ERROR_BAD_NETPATH)) // "//nosuch" on Win32
       {
         ec = error_code(); // these are not considered errors
         return fs::file_status( fs::file_not_found );


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk