| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ac78491 commit 993f05d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1994,7 +1994,7 @@ static void ReadDir(const FunctionCallbackInfo<Value>& args) { | |||
| 1994 | 1994 | ToNamespacedPath(env, &path); | |
| 1995 | 1995 | ||
| 1996 | 1996 | #ifdef _WIN32 | |
| 1997 | - if (slashCheck) { | ||
| 1997 | + if (slashCheck && !path.ToStringView().ends_with("\\")) { | ||
| 1998 | 1998 | size_t new_length = path.length() + 1; | |
| 1999 | 1999 | path.AllocateSufficientStorage(new_length + 1); | |
| 2000 | 2000 | path.SetLengthAndZeroTerminate(new_length); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments