Module: wine Branch: master Commit: d0986ac5adb6ad8cdb3bd93c5c5e2212d924da66 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d0986ac5adb6ad8cdb3bd93c5c...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Sat Mar 22 17:10:16 2008 +0000
wnaspi32: Assign to struct instead of using memcpy.
---
dlls/wnaspi32/winaspi32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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;