From 9711ddaf3f14f08f7c3b6631ae9320597ca85860 Mon Sep 17 00:00:00 2001 From: kuqin12 <42554914+kuqin12@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:19:42 -0800 Subject: [PATCH] AdvancedLogDumper: Fixed application logic to not bail all the time (#615) ## Description The current logic will bail if the HII calls are successful. This change fixes it. For details on how to complete these options and their meaning refer to [CONTRIBUTING.md](https://github.com/microsoft/mu/blob/HEAD/CONTRIBUTING.md). - [x] Impacts functionality? - [ ] Impacts security? - [ ] Breaking change? - [ ] Includes tests? - [ ] Includes documentation? - [x] Backport to release branch? ## How This Was Tested This was tested on proprietary hardware platform and fixed the issue. ## Integration Instructions N/A --- AdvLoggerPkg/Application/AdvancedLogDumper/LogDumper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdvLoggerPkg/Application/AdvancedLogDumper/LogDumper.c b/AdvLoggerPkg/Application/AdvancedLogDumper/LogDumper.c index d0aaf4cec6..32f6b4e95e 100644 --- a/AdvLoggerPkg/Application/AdvancedLogDumper/LogDumper.c +++ b/AdvLoggerPkg/Application/AdvancedLogDumper/LogDumper.c @@ -29,7 +29,7 @@ EntryPoint ( ) { gAdvLogHiiHandle = InitializeHiiPackage (ImageHandle); - if (gAdvLogHiiHandle) { + if (gAdvLogHiiHandle == NULL) { return EFI_ABORTED; }