Win64 returns ERROR_BAD_PATHNAME for //nosuch, while Win32 returns ERROR_BAD_NETPATH

[SVN r39556]
This commit is contained in:
Beman Dawes
2007-09-26 18:11:27 +00:00
parent 85ed046d40
commit cf38bdb506

View File

@@ -192,7 +192,8 @@ namespace
|| (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 );