This patch fixes VS2017 compilation errors for
UefiShellAcpiViewCommandLib\Parsers\Gtdt\GtdtParser.c
and
UefiShellAcpiViewCommandLib\Parsers\Xsdt\XsdtParser.c
reported in
https://bugzilla.tianocore.org/show_bug.cgi?id=985
https://bugzilla.tianocore.org/show_bug.cgi?id=986
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
VOID\r
DumpGTBlock (\r
IN UINT8* Ptr,\r
- IN UINT16 Length\r
+ IN UINT32 Length\r
)\r
{\r
UINT32 Index;\r
UINT32 Offset;\r
- UINT16 GTBlockTimerLength;\r
+ UINT32 GTBlockTimerLength;\r
\r
Offset = ParseAcpi (\r
TRUE,\r
CONST UINT8* Revision;\r
\r
if ((UINT64*)(UINTN)(*TablePointer) != NULL) {\r
- UINT8* Ptr;\r
+ UINT8* SignaturePtr;\r
\r
ParseAcpiHeader (\r
(UINT8*)(UINTN)(*TablePointer),\r
&Revision\r
);\r
\r
- Ptr = (UINT8*)Signature;\r
+ SignaturePtr = (UINT8*)Signature;\r
\r
UnicodeSPrint (\r
Buffer,\r
sizeof (Buffer),\r
L"Entry[%d] - %c%c%c%c",\r
EntryIndex++,\r
- Ptr[0],\r
- Ptr[1],\r
- Ptr[2],\r
- Ptr[3]\r
+ SignaturePtr[0],\r
+ SignaturePtr[1],\r
+ SignaturePtr[2],\r
+ SignaturePtr[3]\r
);\r
} else {\r
UnicodeSPrint (\r