Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62218 - trunk/libs/filesystem/src
From: bdawes_at_[hidden]
Date: 2010-05-25 19:18:15


Author: bemandawes
Date: 2010-05-25 19:18:13 EDT (Tue, 25 May 2010)
New Revision: 62218
URL: http://svn.boost.org/trac/boost/changeset/62218

Log:
Fix #3867, both for ERROR_NOT_READY and ERROR_INVALID_DRIVE. These happen when CD/DVD drive has no disc and USB card reader has no card, respectively.
Text files modified:
   trunk/libs/filesystem/src/operations.cpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/libs/filesystem/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/src/operations.cpp (original)
+++ trunk/libs/filesystem/src/operations.cpp 2010-05-25 19:18:13 EDT (Tue, 25 May 2010)
@@ -193,6 +193,7 @@
         || (ec.value() == ERROR_PATH_NOT_FOUND)
         || (ec.value() == ERROR_INVALID_NAME) // "tools/jam/src/:sys:stat.h", "//foo"
         || (ec.value() == ERROR_INVALID_DRIVE) // USB card reader with no card inserted
+ || (ec.value() == ERROR_NOT_READY) // CD/DVD drive with no disc inserted
         || (ec.value() == ERROR_INVALID_PARAMETER) // ":sys:stat.h"
         || (ec.value() == ERROR_BAD_PATHNAME) // "//nosuch" on Win64
         || (ec.value() == ERROR_BAD_NETPATH)) // "//nosuch" on Win32


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