From 0443ad2b6ed839e8480e250a655001f7d403c9cb Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 9 May 2020 22:57:35 +0000 Subject: pe_get_device_dos_drive_letter(): open the drive, not the volume. Opening the drive rather than the volume's top-level directory requires reduced permissions, and so should always be preferred for as long as it is sufficient. This change, however, is also motivated by annoying media-drive driver behavior of popping up a dialog (how awful) window whenever an allegedly interactive application (that is, interactive by its subsystem) attempts to access a directory (or a file) in the drive while it is empty. --- src/internal/pe_os.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/internal') diff --git a/src/internal/pe_os.h b/src/internal/pe_os.h index 11e334b..6963613 100644 --- a/src/internal/pe_os.h +++ b/src/internal/pe_os.h @@ -29,6 +29,7 @@ #define OS_FILE_DIRECTORY_FILE 0x00000001 #define OS_FILE_NON_DIRECTORY_FILE 0x00000040 +#define OS_FILE_SYNCHRONOUS_IO_ALERT 0x00000010 #define OS_FILE_SHARE_READ 0x00000001 #define OS_FILE_SHARE_WRITE 0x00000002 -- cgit v1.2.3