# windows: Use AccessDenied for ACCESS_DENIED on Windows · gitcafe/zig

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

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

Visibility: public

Requested revision: f304d8e50afac12ac209f850ced4f9ddf3bcff3b

Requested commit: f304d8e50afac12ac209f850ced4f9ddf3bcff3b

Commit: f304d8e50afac12ac209f850ced4f9ddf3bcff3b

Tree: 0db34e8f6056820f4802f97ef29dedeafd7ded3e

Author: Pat Tullmann

Committer: Alex Rønne Petersen

## Message

```
windows: Use AccessDenied for ACCESS_DENIED on Windows

Windows defines an `ACCESS_DENIED` error code.  There is no
PERMISSION_DENIED (or its equivalent) which seems to only exist on POSIX
systems.  Fix a couple Windows calls code to return `error.AccessDenied`
for `ACCESS_DENIED` and to stop mapping AccessDenied into
PermissionDenied.

```

## Parents

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

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