]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcSupport.c
Use siaddr in DHCP packet, if zero, use option 54 instead.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / UefiPxeBcDxe / PxeBcSupport.c
index f30898730e47c5b91d11974ae9a5c58ee07cdb57..0a67fdeda26a2d8133e96906b2bcc400d348aab9 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Support routines for PxeBc.\r
   \r
-Copyright (c) 2007 - 2008, Intel Corporation.<BR>                                                         \r
+Copyright (c) 2007 - 2009, Intel Corporation.<BR>                                                         \r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -142,10 +142,9 @@ GetSmbiosSystemGuidAndSerialNumber (
   @param  Event     The event signaled.\r
   @param  Context   The context.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
+EFIAPI\r
 PxeBcCommonNotify (\r
   IN EFI_EVENT           Event,\r
   IN VOID                *Context\r
@@ -249,9 +248,10 @@ CvtNum (
 {\r
   UINTN Remainder;\r
 \r
-  while (Length-- > 0) {\r
+  while (Length > 0) {\r
     Remainder = Number % 10;\r
     Number /= 10;\r
+    Length--;\r
     Buffer[Length] = (UINT8) ('0' + Remainder);\r
   }\r
 }\r