mirror of
https://github.com/reactos/wine.git
synced 2025-04-10 20:11:07 +00:00
Small fix to get GET_DEVICE_TYPE working (verified by Dan Kegel).
This commit is contained in:
parent
c5af796977
commit
5b66f70f67
@ -372,6 +372,7 @@ DWORD __cdecl SendASPI32Command(LPSRB lpSRB)
|
|||||||
X(Status);X(HaId);X(Flags);X(Target);X(Lun);
|
X(Status);X(HaId);X(Flags);X(Target);X(Lun);
|
||||||
#undef X
|
#undef X
|
||||||
tmpsrb.cmd.SRB_BufLen = sizeof(inqbuf);
|
tmpsrb.cmd.SRB_BufLen = sizeof(inqbuf);
|
||||||
|
tmpsrb.cmd.SRB_Flags = 8;/*target->host data. FIXME: anything more?*/
|
||||||
tmpsrb.cmd.SRB_BufPointer = inqbuf;
|
tmpsrb.cmd.SRB_BufPointer = inqbuf;
|
||||||
tmpsrb.cmd.CDBByte[0] = 0x12; /* INQUIRY */
|
tmpsrb.cmd.CDBByte[0] = 0x12; /* INQUIRY */
|
||||||
tmpsrb.cmd.CDBByte[4] = sizeof(inqbuf);
|
tmpsrb.cmd.CDBByte[4] = sizeof(inqbuf);
|
||||||
@ -380,8 +381,8 @@ DWORD __cdecl SendASPI32Command(LPSRB lpSRB)
|
|||||||
#define X(x) lpSRB->devtype.SRB_##x = tmpsrb.cmd.SRB_##x
|
#define X(x) lpSRB->devtype.SRB_##x = tmpsrb.cmd.SRB_##x
|
||||||
X(Status);
|
X(Status);
|
||||||
#undef X
|
#undef X
|
||||||
lpSRB->devtype.SRB_DeviceType = inqbuf[0]>>3;
|
lpSRB->devtype.SRB_DeviceType = inqbuf[0]&0x1f;
|
||||||
FIXME("returning devicetype %d for target %d\n",inqbuf[0]>>3,tmpsrb.cmd.SRB_Target);
|
TRACE("returning devicetype %d for target %d\n",inqbuf[0]&0x1f,tmpsrb.cmd.SRB_Target);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SC_EXEC_SCSI_CMD:
|
case SC_EXEC_SCSI_CMD:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user