From: Hao Wu Date: Tue, 5 Jul 2016 02:30:51 +0000 (+0800) Subject: MdeModulePkg UefiPxeBcDxe: Fix build error for lastest VS2015 compiler X-Git-Tag: edk2-stable201903~6399 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e719fcb5e172837b0df2ebdb4f0f74d96b5244e7 MdeModulePkg UefiPxeBcDxe: Fix build error for lastest VS2015 compiler The UefiPxeBcDxe module encounters a build error for IA32 arch using the latest version of VS2015: UefiPxe4BcDxe.lib(PxeBcDhcp.obj) : error LNK2001: unresolved external symbol __allmul The cause is line 1659 in file MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c. The third parameter for gBS->SetTimer() function is of type UINT64, so the multiplication should use the MultU64x32() function. Cc: Ye Ting Cc: Fu Siyuan Cc: Wu Jiaxin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Liming Gao Reviewed-by: Fu Siyuan Reviewed-By: Wu Jiaxin --- diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c index 3849613528..eac955cd71 100644 --- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c +++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c @@ -1656,7 +1656,7 @@ PxeBcSelectBootPrompt ( Status = gBS->SetTimer ( TimeoutEvent, TimerRelative, - Timeout * TICKS_PER_SECOND + MultU64x32 (Timeout, TICKS_PER_SECOND) ); if (EFI_ERROR (Status)) {