Signed-off-by: Paul Gofman pgofman@codeweavers.com --- dlls/kernelbase/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernelbase/file.c b/dlls/kernelbase/file.c index cd6b62409ff..9f530455967 100644 --- a/dlls/kernelbase/file.c +++ b/dlls/kernelbase/file.c @@ -1205,7 +1205,7 @@ HANDLE WINAPI DECLSPEC_HOTPATCH FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_ attr.SecurityDescriptor = NULL; attr.SecurityQualityOfService = NULL;
- status = NtOpenFile( &info->handle, GENERIC_READ | SYNCHRONIZE, &attr, &io, + status = NtOpenFile( &info->handle, FILE_LIST_DIRECTORY | SYNCHRONIZE, &attr, &io, FILE_SHARE_READ | FILE_SHARE_WRITE, FILE_DIRECTORY_FILE | FILE_SYNCHRONOUS_IO_NONALERT | FILE_OPEN_FOR_BACKUP_INTENT ); if (status != STATUS_SUCCESS)