Commit f96670cb authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Add support for root directory in NtCreateFile for Win32 file objects.

parent 66d893b0
...@@ -158,16 +158,9 @@ NTSTATUS WINAPI NtCreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATTRIB ...@@ -158,16 +158,9 @@ NTSTATUS WINAPI NtCreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATTRIB
if (alloc_size) FIXME( "alloc_size not supported\n" ); if (alloc_size) FIXME( "alloc_size not supported\n" );
if (attr->RootDirectory) if (attr->RootDirectory ||
{ (io->u.Status = wine_nt_to_unix_file_name( attr->ObjectName, &unix_name, disposition,
FIXME( "RootDirectory %p not supported\n", attr->RootDirectory ); !(attr->Attributes & OBJ_CASE_INSENSITIVE) )) == STATUS_BAD_DEVICE_TYPE)
return STATUS_OBJECT_NAME_NOT_FOUND;
}
io->u.Status = wine_nt_to_unix_file_name( attr->ObjectName, &unix_name, disposition,
!(attr->Attributes & OBJ_CASE_INSENSITIVE) );
if (io->u.Status == STATUS_BAD_DEVICE_TYPE)
{ {
SERVER_START_REQ( open_file_object ) SERVER_START_REQ( open_file_object )
{ {
......
...@@ -553,7 +553,7 @@ static void test_symboliclink(void) ...@@ -553,7 +553,7 @@ static void test_symboliclink(void)
pRtlCreateUnicodeStringFromAsciiz(&str, "test-link\\PIPE"); pRtlCreateUnicodeStringFromAsciiz(&str, "test-link\\PIPE");
status = pNtOpenFile(&h, GENERIC_READ, &attr, &iosb, FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN); status = pNtOpenFile(&h, GENERIC_READ, &attr, &iosb, FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN);
todo_wine ok(status == STATUS_SUCCESS, "Failed to open NamedPipe(%08x)\n", status); ok(status == STATUS_SUCCESS, "Failed to open NamedPipe(%08x)\n", status);
pRtlFreeUnicodeString(&str); pRtlFreeUnicodeString(&str);
pNtClose(h); pNtClose(h);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment