From: Elizabeth Figura zfigura@codeweavers.com
--- dlls/kernelbase/file.c | 3 ++- dlls/ntdll/tests/file.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/kernelbase/file.c b/dlls/kernelbase/file.c index d8a7c2abd74..2db98df0e3a 100644 --- a/dlls/kernelbase/file.c +++ b/dlls/kernelbase/file.c @@ -2910,7 +2910,8 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetFileAttributesW( LPCWSTR name, DWORD attributes }
InitializeObjectAttributes( &attr, &nt_name, OBJ_CASE_INSENSITIVE, 0, NULL ); - status = NtOpenFile( &handle, SYNCHRONIZE, &attr, &io, 0, FILE_SYNCHRONOUS_IO_NONALERT ); + status = NtOpenFile( &handle, SYNCHRONIZE, &attr, &io, 0, + FILE_SYNCHRONOUS_IO_NONALERT | FILE_OPEN_REPARSE_POINT ); RtlFreeUnicodeString( &nt_name );
if (status == STATUS_SUCCESS) diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c index aa91f5a90aa..159eaeb834e 100644 --- a/dlls/ntdll/tests/file.c +++ b/dlls/ntdll/tests/file.c @@ -6961,7 +6961,7 @@ static void test_reparse_points(void) "got attributes %#x\n", ret );
ret = GetFileAttributesW( path2 ); - todo_wine ok( ret == FILE_ATTRIBUTE_ARCHIVE, "got attributes %#x\n", ret ); + ok( ret == FILE_ATTRIBUTE_ARCHIVE, "got attributes %#x\n", ret );
status = NtQueryAttributesFile( &attr, &basic_info ); todo_wine ok( !status, "got %#lx\n", status );