windows: fix off-by-one error in uv_fs_stat
uv__is_root typo caused incorrect fs.exists results in Node.
This commit is contained in:
parent
332b72e589
commit
74cff551d5
@ -541,7 +541,7 @@ static int uv__is_root(const wchar_t* path) {
|
||||
size_t len = wcslen(path);
|
||||
|
||||
/* Test for \ */
|
||||
if (len == 0 && IS_SLASH(path[0])) {
|
||||
if (len == 1 && IS_SLASH(path[0])) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user