ntdll: Return STATUS_INVALID_DEVICE_REQUEST when trying to call NtReadFile on directory.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
41e53a122d
commit
43de1407e9
|
@ -171,7 +171,6 @@ static void create_file_test(void)
|
|||
U(io).Status = 0xdeadbeef;
|
||||
offset.QuadPart = 0;
|
||||
status = pNtReadFile( dir, NULL, NULL, NULL, &io, buf, sizeof(buf), &offset, NULL );
|
||||
todo_wine
|
||||
ok( status == STATUS_INVALID_DEVICE_REQUEST || status == STATUS_PENDING, "NtReadFile error %08x\n", status );
|
||||
if (status == STATUS_PENDING)
|
||||
{
|
||||
|
|
|
@ -344,7 +344,7 @@ NTSTATUS errno_to_status( int err )
|
|||
case EACCES: return STATUS_ACCESS_DENIED;
|
||||
case ENOTDIR: return STATUS_OBJECT_PATH_NOT_FOUND;
|
||||
case ENOENT: return STATUS_OBJECT_NAME_NOT_FOUND;
|
||||
case EISDIR: return STATUS_FILE_IS_A_DIRECTORY;
|
||||
case EISDIR: return STATUS_INVALID_DEVICE_REQUEST;
|
||||
case EMFILE:
|
||||
case ENFILE: return STATUS_TOO_MANY_OPENED_FILES;
|
||||
case EINVAL: return STATUS_INVALID_PARAMETER;
|
||||
|
|
Loading…
Reference in New Issue