[libcxx-commits] [libcxx] [libcxx] Handle windows system error code mapping in std::error_code. (PR #93101)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Aug 5 11:48:20 PDT 2024
================
@@ -300,15 +296,15 @@ inline int statvfs(const wchar_t* p, StatVFS* buf) {
break;
path parent = dir.parent_path();
if (parent == dir) {
- errno = ENOENT;
+ SetLastError(ERROR_PATH_NOT_FOUND);
----------------
ldionne wrote:
Why do you `SetLastError` here but everywhere else you only `return -1`? Same question a few times below.
https://github.com/llvm/llvm-project/pull/93101
More information about the libcxx-commits
mailing list