# MoveFileEx can return ACCESS_DENIED · gitcafe/zig

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

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

Visibility: public

Requested revision: 1f09584d059cb5864228eb4188496decdc825584

Requested commit: 1f09584d059cb5864228eb4188496decdc825584

Commit: 1f09584d059cb5864228eb4188496decdc825584

Tree: 03400cdb74e3f1a477d6cfd28a9bdbe5271abed7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
MoveFileEx can return ACCESS_DENIED

I observed this on Windows 10, trying to use MoveFileEx with
MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH
to overwrite a running executable.

```

## Parents

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

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