stage1: Fix path normalization on Windows

Backport a missing change from `path.zig`.

Fixes #9465
This commit is contained in:
LemonBoy 2021-10-27 18:08:19 +02:00 committed by Andrew Kelley
parent 3af9731600
commit 3568cd4b8f

View File

@ -480,7 +480,7 @@ static Buf os_path_resolve_windows(Buf **paths_ptr, size_t paths_len) {
// Now we know the disk designator to use, if any, and what kind it is. And our result
// is big enough to append all the paths to.
bool correct_disk_designator = true;
for (size_t i = 0; i < paths_len; i += 1) {
for (size_t i = first_index; i < paths_len; i += 1) {
Slice<uint8_t> p = buf_to_slice(paths_ptr[i]);
WindowsPath parsed = windowsParsePath(p);