wnaspi32: Assign to struct instead of using memcpy.
This commit is contained in:
parent
db8b2ca7b4
commit
d0986ac5ad
|
@ -541,7 +541,7 @@ DWORD __cdecl SendASPI32Command(LPSRB lpSRB)
|
|||
memset(&tmpsrb,0,sizeof(tmpsrb));
|
||||
|
||||
/* Copy header */
|
||||
memcpy(&tmpsrb.common,&(lpSRB->common),sizeof(tmpsrb.common));
|
||||
tmpsrb.common = lpSRB->common;
|
||||
|
||||
tmpsrb.cmd.SRB_Flags |= 8; /* target to host */
|
||||
tmpsrb.cmd.SRB_Cmd = SC_EXEC_SCSI_CMD;
|
||||
|
|
Loading…
Reference in New Issue