From e9fec7326ad2f27fe368c830da055d1044b18e95 Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Tue, 6 Sep 2016 13:15:21 +0800 Subject: [PATCH] Nt32Pkg: Fix VS2010/VS2012 build failure Initialize the variable "OptionNumber". Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Eric Dong --- Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c b/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c index dd67dab9dd..76d926b996 100644 --- a/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -274,6 +274,8 @@ GetBootManagerMenuAppOption ( UINTN Index; UINTN OptionNumber; + OptionNumber = 0; + BootOptions = EfiBootManagerGetLoadOptions (&BootOptionCount, LoadOptionTypeBoot); for (Index = 0; Index < BootOptionCount; Index++) { -- 2.39.2