Skip to content

Commit d6fb2c0

Browse files
committed
less permissions, no need for certain flags to CreateFile call
1 parent d9b3003 commit d6fb2c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ds_open_handle(
66
PWCHAR pwPath
77
)
88
{
9-
return CreateFileW(pwPath, GENERIC_READ | SYNCHRONIZE | DELETE, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
9+
return CreateFileW(pwPath, DELETE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
1010
}
1111

1212
static

0 commit comments

Comments
 (0)