# std: Fix path resolution on Windows · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/2551946a5102a72b4120b70d400ce4c9ff517415)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 2551946a5102a72b4120b70d400ce4c9ff517415

Requested commit: 2551946a5102a72b4120b70d400ce4c9ff517415

Commit: 2551946a5102a72b4120b70d400ce4c9ff517415

Tree: 0e5186c313f398ff2133f90457722eca1c82d758

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Fix path resolution on Windows

GetCurrentDirectory returns a path with a trailing slash iff the cwd is
a root directory, making the code in `resolveWindows` return an invalid
path with two consecutive slashes.

Closes #10093

```

## Parents

- [e97feb96e4daf7d53538c9c8773d50459a59e5ee](https://git.cafe/gitcafe/zig/commit/e97feb96e4daf7d53538c9c8773d50459a59e5ee?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/2551946a5102a72b4120b70d400ce4c9ff517415?format=markdown)
