Alexandre Goujon <ale.gou...@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 julli...@winehq.org