From 5d54bbec2ce3861d646fbbd19072b1c3c1537f17 Mon Sep 17 00:00:00 2001 From: Qiu Shumin Date: Fri, 25 Mar 2016 09:45:43 +0800 Subject: [PATCH] ShellPkg/UefiHandleParsingLib: Fix GUID reference Pass in GUID* for the GUID reference in a CatSPrint statement. Issue was noticed when running "dh -d -v" command on a system with a PCI NIC installed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Thomas Palmer Reviewed-by: Qiu Shumin Reviewed-by: Samer El-Haj-Mahmoud --- ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c index 22d778b132..48a753dfd5 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c @@ -668,7 +668,7 @@ AdapterInformationDumpInformation ( if (TempStr == NULL) { goto ERROR_EXIT; } - TempRetVal = CatSPrint (RetVal, TempStr, (GuidIndex + 1), InfoTypesBuffer[GuidIndex]); + TempRetVal = CatSPrint (RetVal, TempStr, (GuidIndex + 1), &InfoTypesBuffer[GuidIndex]); SHELL_FREE_NON_NULL (RetVal); RetVal = TempRetVal; SHELL_FREE_NON_NULL (TempStr); -- 2.39.2