Skip to content

Commit d724b18

Browse files
authored
Merge pull request #11569 from ljaeh0121/feature/set-delete_pending-in-irp-close
[channel,drive] Add DELETE_PENDING Flag in drive_file_free
2 parents fa4d99a + 842388c commit d724b18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

channels/drive/client/drive_file.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ BOOL drive_file_free(DRIVE_FILE* file)
374374
file->find_handle = INVALID_HANDLE_VALUE;
375375
}
376376

377+
if (file->CreateOptions & FILE_DELETE_ON_CLOSE)
378+
file->delete_pending = TRUE;
379+
377380
if (file->delete_pending)
378381
{
379382
if (file->is_dir)

0 commit comments

Comments
 (0)