]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/VirtioScsiDxe/VirtioScsi.c
OvmfPkg VirtioScsiDxe: Fix build with VS2010
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 23 Oct 2012 22:16:14 +0000 (22:16 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 23 Oct 2012 22:16:14 +0000 (22:16 +0000)
commit151304d96d9abd61a71c9f90eb4a0d0c9f0fc391
treeb2c96b4bad3fb731e88a101a75a943c400723b5a
parent5077d4e5df092cbc254aa344d6cc5f2b5722967d
OvmfPkg VirtioScsiDxe: Fix build with VS2010

Structures should not be directly assigned in EDK II
code, since this leads to different behaviours on various
compilers.

Instead, use ZeroMem to zero out the structures.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13878 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/VirtioScsiDxe/VirtioScsi.c