summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/SnpDxe
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-16 04:51:25 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-16 04:51:25 +0000
commitcd7bfc2c632841fab110f601a32850eeddc16af1 (patch)
tree4d1f82523dd545fa241053cf52b31b8c2b915fe7 /MdeModulePkg/Universal/Network/SnpDxe
parent7bee5a761f4cbafd1e1805dfd99255a0353bbf88 (diff)
downloadedk2-platforms-cd7bfc2c632841fab110f601a32850eeddc16af1.tar.xz
Refine code to make code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10880 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/SnpDxe')
-rw-r--r--MdeModulePkg/Universal/Network/SnpDxe/Transmit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c b/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c
index ac6b66424d..e6c5af77ec 100644
--- a/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c
+++ b/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c
@@ -90,7 +90,7 @@ PxeFillHeader (
Snp->Cdb.DBsize = PXE_DBSIZE_NOT_USED;
Snp->Cdb.DBaddr = PXE_DBADDR_NOT_USED;
- Snp->Cdb.CPBsize = sizeof (PXE_CPB_FILL_HEADER_FRAGMENTED);
+ Snp->Cdb.CPBsize = (UINT16) sizeof (PXE_CPB_FILL_HEADER_FRAGMENTED);
Snp->Cdb.CPBaddr = (UINT64)(UINTN) Cpb;
Snp->Cdb.StatCode = PXE_STATCODE_INITIALIZE;