mirror of
https://github.com/ziglang/zig.git
synced 2025-02-13 16:10:19 +00:00
Add OpenFileW
share_access_nonblocking
parameter
This commit is contained in:
parent
317f06dc77
commit
858aefac7f
@ -1680,7 +1680,7 @@ pub fn renameatW(
|
||||
ReplaceIfExists: windows.BOOLEAN,
|
||||
) RenameError!void {
|
||||
const access_mask = windows.SYNCHRONIZE | windows.GENERIC_WRITE | windows.DELETE;
|
||||
const src_fd = try windows.OpenFileW(old_dir_fd, old_path, null, access_mask, null, windows.FILE_OPEN);
|
||||
const src_fd = try windows.OpenFileW(old_dir_fd, old_path, null, access_mask, null, false, windows.FILE_OPEN);
|
||||
defer windows.CloseHandle(src_fd);
|
||||
|
||||
const struct_buf_len = @sizeOf(windows.FILE_RENAME_INFORMATION) + (MAX_PATH_BYTES - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user