Skip to content

Commit be50dbf

Browse files
author
Jan Philipp Hafer
committed
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 parent 0f0f005 commit be50dbf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/std/os/windows.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,6 @@ pub fn DeleteFile(sub_path_w: []const u16, options: DeleteFileOptions) DeleteFil
943943
var info = FILE_DISPOSITION_INFORMATION_EX{
944944
.Flags = FILE_DISPOSITION_DELETE |
945945
FILE_DISPOSITION_POSIX_SEMANTICS |
946-
FILE_DISPOSITION_ON_CLOSE |
947946
FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE,
948947
};
949948

0 commit comments

Comments
 (0)