| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 36b68db commit 85818db
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1902,7 +1902,7 @@ static void ReadDir(const FunctionCallbackInfo<Value>& args) { | |||
| 1902 | 1902 | ToNamespacedPath(env, &path); | |
| 1903 | 1903 | ||
| 1904 | 1904 | #ifdef _WIN32 | |
| 1905 | - if (slashCheck) { | ||
| 1905 | + if (slashCheck && !path.ToStringView().ends_with("\\")) { | ||
| 1906 | 1906 | size_t new_length = path.length() + 1; | |
| 1907 | 1907 | path.AllocateSufficientStorage(new_length + 1); | |
| 1908 | 1908 | path.SetLengthAndZeroTerminate(new_length); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments