Skip to content

Commit a10f2ba

Browse files
authored
Update nt.h
1 parent a13c016 commit a10f2ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • include/fast_io_hosted/platforms

include/fast_io_hosted/platforms/nt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ inline constexpr nt_open_mode calculate_nt_open_mode(open_mode_perms ompm) noexc
8888
constexpr auto default_write_attribute{0x00020000L /*READ_CONTROL*/ | 0x0002 /*FILE_WRITE_DATA*/ | 0x0004 /*FILE_APPEND_DATA*/};
8989
constexpr auto default_read_attribute{0x00020000L /*READ_CONTROL*/ | 0x0001 /*FILE_READ_DATA*/};
9090

91-
mode.DesiredAccess |= 0x00100000L /*SYNCHRONIZE*/ | 0x0080 /*FILE_READ_ATTRIBUTES*/;
91+
mode.DesiredAccess |= 0x00100000L /*SYNCHRONIZE*/ | 0x0080 /*FILE_READ_ATTRIBUTES*/ | 0x0100 /*FILE_WRITE_ATTRIBUTES*/;
9292

9393
if ((value & open_mode::no_shared_read) == open_mode::none)
9494
{

0 commit comments

Comments
 (0)