From be50dbf1ce03f5dc5deef86882ab3505363b683a Mon Sep 17 00:00:00 2001 From: Jan Philipp Hafer Date: Mon, 1 May 2023 12:45:41 +0200 Subject: [PATCH] apply suggestion by user @xEgoist FILE_DISPOSITION_ON_CLOSE is used to set/clear the FILE_DELETE_ON_CLOSE, but we do not use that anymore and FILE_DISPOSITION_POSIX_SEMANTICS already implies unmapping of the handle and removal fo it on close. --- lib/std/os/windows.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index 37ec7f09a3..e6ce95713c 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -943,7 +943,6 @@ pub fn DeleteFile(sub_path_w: []const u16, options: DeleteFileOptions) DeleteFil var info = FILE_DISPOSITION_INFORMATION_EX{ .Flags = FILE_DISPOSITION_DELETE | FILE_DISPOSITION_POSIX_SEMANTICS | - FILE_DISPOSITION_ON_CLOSE | FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE, };