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:
Brandon Benvie 2012-01-28 03:55:21 -05:00 committed by Ben Noordhuis
parent 332b72e589
commit 74cff551d5

View File

@ -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;
}