# std: further windows resource fix · gitcafe/zig

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

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

Visibility: public

Requested revision: f780a6b024f25838560cce6e0bd93c808e09457b

Requested commit: f780a6b024f25838560cce6e0bd93c808e09457b

Commit: f780a6b024f25838560cce6e0bd93c808e09457b

Tree: 88534584c410460f73b4a8b9f5abd8a9db063c4c

Author: xEgoist

Committer: Andrew Kelley

## Message

```
std: further windows resource fix

addition to #15450
createFileW does not account for failure on `LockFile`. This can result
in a file handle not being closed on failure which can be seen on test
such as `fs.test.'open file with exclusive nonblocking lock twice'`.

```

## Parents

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

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