OvmfPkg/VirtioNetDxe: Fix build errors on VS2012 (IA32 & X64)
These changes were needed in addition to the silence.patch that Laszlo posted on May 28. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14420 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
Implementation of the SNP.Receive() function and its private helpers if any.
|
||||
|
||||
Copyright (C) 2013, Red Hat, Inc.
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials are licensed and made available
|
||||
under the terms and conditions of the BSD License which accompanies this
|
||||
@@ -142,7 +142,7 @@ VirtioNetReceive (
|
||||
*HeaderSize = Dev->Snm.MediaHeaderSize;
|
||||
}
|
||||
|
||||
RxPtr = (UINT8 *)Dev->RxRing.Desc[DescIdx + 1].Addr;
|
||||
RxPtr = (UINT8 *)(UINTN) Dev->RxRing.Desc[DescIdx + 1].Addr;
|
||||
CopyMem (Buffer, RxPtr, RxLen);
|
||||
|
||||
if (DestAddr != NULL) {
|
||||
|
Reference in New Issue
Block a user