Implement IOCTL_SCSI_GET_INQUIRY_DATA

Dmitry Timoshkov dmitry at baikal.ru
Wed Jul 27 22:05:25 CDT 2005


"Vitaliy Margolen" <wine-patch at kievinfo.com> wrote:

> +static NTSTATUS GetInquiryData(int fd, PSCSI_ADAPTER_BUS_INFO BufferOut, DWORD OutBufferSize)
> +{
> +    PSCSI_INQUIRY_DATA inquirydata = NULL;
> +    sg_io_hdr_t iocmd;
> +    UCHAR inquiry[INQ_CMD_LEN] = {INQUIRY, 0, 0, 0, INQ_REPLY_LEN, 0};
> +    UCHAR sense_buffer[32];
> +    struct hd_driveid;
> +    int iochk, version;
> +
> +#if defined(linux)
> +    /* Check we have a SCSI device and a supported driver */

Please use appropriate configure checks instead of a blind '#if defined(linux)'.

-- 
Dmitry.




More information about the wine-devel mailing list