wnaspi32: Assign to struct instead of using memcpy
Andrew Talbot
andrew.talbot at talbotville.com
Sat Mar 22 12:10:16 CDT 2008
Changelog:
wnaspi32: Assign to struct instead of using memcpy.
diff --git a/dlls/wnaspi32/winaspi32.c b/dlls/wnaspi32/winaspi32.c
index 438b2a1..36a9202 100644
--- a/dlls/wnaspi32/winaspi32.c
+++ b/dlls/wnaspi32/winaspi32.c
@@ -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;
More information about the wine-patches
mailing list