]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Gtdt/GtdtParser.c
ShellPkg/UefiShellAcpiViewCommandLib: Fix VS2017 compilation errors
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / Parsers / Gtdt / GtdtParser.c
index 30cf3e14f7e776384d8c1c09d5acd29f7c7459b7..0ab460b02c9e062ac181e42e7e77f875a40c86dc 100644 (file)
@@ -138,7 +138,10 @@ ValidateGtBlockTimerCount (
   IN VOID*  Context\r
   )\r
 {\r
   IN VOID*  Context\r
   )\r
 {\r
-  UINT32 BlockTimerCount = *(UINT32*)Ptr;\r
+  UINT32 BlockTimerCount;\r
+\r
+  BlockTimerCount = *(UINT32*)Ptr;\r
+\r
   if (BlockTimerCount > 8) {\r
     IncrementErrorCount ();\r
     Print (\r
   if (BlockTimerCount > 8) {\r
     IncrementErrorCount ();\r
     Print (\r
@@ -158,12 +161,12 @@ STATIC
 VOID\r
 DumpGTBlock (\r
   IN UINT8* Ptr,\r
 VOID\r
 DumpGTBlock (\r
   IN UINT8* Ptr,\r
-  IN UINT16 Length\r
+  IN UINT32 Length\r
   )\r
 {\r
   UINT32 Index;\r
   UINT32 Offset;\r
   )\r
 {\r
   UINT32 Index;\r
   UINT32 Offset;\r
-  UINT16 GTBlockTimerLength;\r
+  UINT32 GTBlockTimerLength;\r
 \r
   Offset = ParseAcpi (\r
              TRUE,\r
 \r
   Offset = ParseAcpi (\r
              TRUE,\r