mirror of
https://github.com/boostorg/filesystem.git
synced 2026-01-24 18:02:11 +00:00
Win64 returns ERROR_BAD_PATHNAME for //nosuch, while Win32 returns ERROR_BAD_NETPATH
[SVN r39556]
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user