# Windows: Handle ACCESS_DENIED in DeviceIoControl · gitcafe/zig

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

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

Visibility: public

Requested revision: 254ee89def29f67fdf4dd4c6a433ae876f76d79e

Requested commit: 254ee89def29f67fdf4dd4c6a433ae876f76d79e

Commit: 254ee89def29f67fdf4dd4c6a433ae876f76d79e

Tree: 125de3cb3b9a9d60ba7ac985cfb789cf4de4f16a

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
Windows: Handle ACCESS_DENIED in DeviceIoControl

This was causing the Dir.readLink test to fail for me locally with error.Unexpected NTSTATUS=0xc0000022. Not sure if PRIVILEGE_NOT_HELD is actually possible or not.

```

## Parents

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

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