ntdll: Return STATUS_INVALID_DEVICE_REQUEST when calling NtReadFile on directory.
Alexandre Julliard
julliard at winehq.org
Fri Oct 2 03:04:10 CDT 2015
Sebastian Lackner <sebastian at fds-team.de> writes:
> Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
> ---
> dlls/ntdll/file.c | 2 +-
> dlls/ntdll/tests/file.c | 16 ++++++++++++++++
> 2 files changed, 17 insertions(+), 1 deletion(-)
>
> diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
> index be6b591..e4370dc 100644
> --- a/dlls/ntdll/file.c
> +++ b/dlls/ntdll/file.c
> @@ -444,7 +444,7 @@ NTSTATUS FILE_GetNtStatus(void)
> 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;
That's going to affect all file functions, not only NtReadFile. It would
need more test cases.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list