# Fix compile error due to GetModuleFileNameW binding change · gitcafe/zig

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

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

Visibility: public

Requested revision: efde3ed04a8745a567f2cb964b45e094bae59344

Requested commit: efde3ed04a8745a567f2cb964b45e094bae59344

Commit: efde3ed04a8745a567f2cb964b45e094bae59344

Tree: db7e4567331df41aeb7330c953bef173065db6d4

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
Fix compile error due to GetModuleFileNameW binding change

In https://github.com/ziglang/zig/pull/19641, this binding changed from `[*]u16` to `LPWSTR` which made it a sentinel-terminated pointer. This introduced a compiler error in the `std.os.windows.GetModuleFileNameW` wrapper since it takes a `[*]u16` pointer. This commit changes the binding back to what it was before instead of introducing a breaking change to `std.os.windows.GetModuleFileNameW`

Related: https://github.com/ziglang/zig/issues/20858

```

## Parents

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

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