From 74cff551d5d827587ddf8b90ee8c05541ce4ec59 Mon Sep 17 00:00:00 2001 From: Brandon Benvie Date: Sat, 28 Jan 2012 03:55:21 -0500 Subject: [PATCH] windows: fix off-by-one error in uv_fs_stat uv__is_root typo caused incorrect fs.exists results in Node. --- 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 6948f7ef..5248ac2a 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -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; }