X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fwindows%2Fstat.cpp;h=ac9e0c977ac537fcd97bb9230b794ba7f334cc8a;hp=a1f19efa7de25f5bd462aa8f08dcde57726161c4;hb=2c63690c6315004c1d5e48b84ac1b75d796ea7b2;hpb=c7f043246e16188634eccd4e87fa847a1d58a9c4 diff --git a/source/fs/windows/stat.cpp b/source/fs/windows/stat.cpp index a1f19ef..ac9e0c9 100644 --- a/source/fs/windows/stat.cpp +++ b/source/fs/windows/stat.cpp @@ -77,7 +77,7 @@ Stat Stat::stat(const Path &path) if(handle==INVALID_HANDLE_VALUE) { DWORD err = GetLastError(); - if(err==ERROR_FILE_NOT_FOUND) + if(err==ERROR_FILE_NOT_FOUND || err==ERROR_PATH_NOT_FOUND) return Stat(); else throw system_error(format("CreateFile(%s)", path), err);