From 3568cd4b8f52164d8a519576cc9ea95bb303cd92 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Wed, 27 Oct 2021 18:08:19 +0200 Subject: [PATCH] stage1: Fix path normalization on Windows Backport a missing change from `path.zig`. Fixes #9465 --- src/stage1/os.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stage1/os.cpp b/src/stage1/os.cpp index 10cd2c08fe..42a22b026a 100644 --- a/src/stage1/os.cpp +++ b/src/stage1/os.cpp @@ -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 p = buf_to_slice(paths_ptr[i]); WindowsPath parsed = windowsParsePath(p);