[PATCH 2/2] kernel32: Return correct drive type for empty drives (try2)

Alexandre Julliard julliard at winehq.org
Thu Sep 6 12:05:08 CDT 2012


Alexandre Goujon <ale.goujon at gmail.com> writes:

> @@ -2544,7 +2544,8 @@ static NTSTATUS DVD_ReadStructure(int dev, const DVD_READ_STRUCTURE *structure,
>      }
>  
>      if (ioctl(dev, DVD_READ_STRUCT, &s) < 0)
> -       return STATUS_INVALID_PARAMETER;
> +        /* Will be converted into ERROR_INVALID_FUNCTION */
> +        return (errno == ENOMEDIUM) ? STATUS_INVALID_DEVICE_REQUEST : STATUS_INVALID_PARAMETER;

That doesn't make much sense, you probably want to use FILE_GetNtStatus.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list