From 253d718572aaf4ee144f10b20cac0a3768c40f45 Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Tue, 22 May 2012 15:58:01 -0700 Subject: [PATCH] report correct error --- src/win/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/fs.c b/src/win/fs.c index 924554b3..7e302b32 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -855,7 +855,7 @@ void fs__create_junction(uv_fs_t* req, const wchar_t* path, const wchar_t* new_p if (!is_absolute) { /* Not supporting relative paths */ - SET_REQ_UV_ERROR(req, EINVAL, ERROR_NOT_SUPPORTED); + SET_REQ_UV_ERROR(req, UV_EINVAL, ERROR_NOT_SUPPORTED); return; }