aboutsummaryrefslogtreecommitdiff
path: root/lib/std/priority_queue.zig
diff options
context:
space:
mode:
authorJonathan S <gereeter+code@gmail.com>2019-11-22 16:14:39 -0600
committerAndrew Kelley <andrew@ziglang.org>2019-11-25 23:46:47 -0500
commit51c57408794ae4411a0059d7f9d30b47d83a534e (patch)
tree621db53675761a044714e5138a34bc1b099ea2c3 /lib/std/priority_queue.zig
parent07120c87451636f65d2917f0355b4493034a2c0f (diff)
downloadzig-51c57408794ae4411a0059d7f9d30b47d83a534e.tar.gz
zig-51c57408794ae4411a0059d7f9d30b47d83a534e.zip
Use a specific access mask in `Dir.openDirListW` instead of a generic one. Untested.
The actual desired access mask in this case seems quite confusing and badly documented. The previous combination of `GENERIC_READ` and `SYNCHRONIZE` seems both illegal and redundant according to the [`ntifs.h` documentation](https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-ntcreatefile), which specifies that `GENERIC_READ` should not be used for directories and includes `SYNCHRONIZE`. `winnt.h` contains a number of relevant-sounding flags such as `FILE_ADD_FILE`, `FILE_ADD_SUBDIRECTORY`, and `FILE_DELETE_CHILD` that do not show up in documentation at all. These are equal in value to file-specific flags that are documented as flags you should not specify when opening a directory.
Diffstat (limited to 'lib/std/priority_queue.zig')
0 files changed, 0 insertions, 0 deletions