# NtSetInformationFile: remove const from FileInformation buffer param · gitcafe/zig

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

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

Visibility: public

Requested revision: 2301f2ecdf3a4f823c1a66482af2574738ffb554

Requested commit: 2301f2ecdf3a4f823c1a66482af2574738ffb554

Commit: 2301f2ecdf3a4f823c1a66482af2574738ffb554

Tree: ac05f814a34d07aa704f04cc7a5e34a6fd38c320

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
NtSetInformationFile: remove const from FileInformation buffer param

When targeting x86-windows, this parameter referring to read-only memory can result in an ACCESS_VIOLATION error, and this has been seen when using FILE_DISPOSITION_INFORMATION_EX. It's unclear how exactly this ACCESS_VIOLATION is occurring, though, as the memory does not actually change before/after the call.

Closes https://codeberg.org/ziglang/zig/issues/30802

```

## Parents

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

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