authorgravatar for jan.hafer@rwth-aachen.deJan Philipp Hafer <jan.hafer@rwth-aachen.de> 2023-05-01 12:45:41+02:00
committergravatar for jan.hafer@rwth-aachen.deJan Philipp Hafer <jan.hafer@rwth-aachen.de> 2023-05-01 15:46:58+02:00
logbe50dbf1ce03f5dc5deef86882ab3505363b683a
treec146be0fe3c4482245acde163d80d37f05549afb
parent0f0f005e927be5e9d813e40c8c6c6580fd4f5697

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.

1 files changed, 0 insertions(+), 1 deletions(-)

lib/std/os/windows.zig-1
...@@ -943,7 +943,6 @@ pub fn DeleteFile(sub_path_w: []const u16, options: DeleteFileOptions) DeleteFil...@@ -943,7 +943,6 @@ pub fn DeleteFile(sub_path_w: []const u16, options: DeleteFileOptions) DeleteFil
943 var info = FILE_DISPOSITION_INFORMATION_EX{943 var info = FILE_DISPOSITION_INFORMATION_EX{
944 .Flags = FILE_DISPOSITION_DELETE |944 .Flags = FILE_DISPOSITION_DELETE |
945 FILE_DISPOSITION_POSIX_SEMANTICS |945 FILE_DISPOSITION_POSIX_SEMANTICS |
946 FILE_DISPOSITION_ON_CLOSE |
947 FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE,946 FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE,
948 };947 };
949948