Skip to content

Commit bb5ce77

Browse files
committed
add necessary access flag for reparse point removal
1 parent dfdcbf1 commit bb5ce77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IntelPresentMon/CommonUtilities/file/SecureSubdirectory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace pmon::util::file
1919
{
2020
// open a directory into handle without following reparse at the path leaf
2121
win::Handle OpenDirNoFollow_(const fs::path& dirPath,
22-
DWORD desiredAccess = FILE_LIST_DIRECTORY | READ_CONTROL | WRITE_DAC | SYNCHRONIZE | DELETE,
22+
DWORD desiredAccess = FILE_LIST_DIRECTORY | READ_CONTROL | WRITE_DAC | SYNCHRONIZE | FILE_WRITE_ATTRIBUTES,
2323
DWORD share = FILE_SHARE_READ | FILE_SHARE_WRITE)
2424
{
2525
auto h = (win::Handle)CreateFileW(

0 commit comments

Comments
 (0)