diff options
-rw-r--r-- | UefiMonitorTest/UefiMonitorTest.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/UefiMonitorTest/UefiMonitorTest.c b/UefiMonitorTest/UefiMonitorTest.c index bfe75ba..047d14b 100644 --- a/UefiMonitorTest/UefiMonitorTest.c +++ b/UefiMonitorTest/UefiMonitorTest.c @@ -51,6 +51,22 @@ RegisterHiiPackage ( } STATIC +EFI_STATUS +UnregisterHiiPackage ( + IN EFI_HII_HANDLE HiiHandle + ) +{ + EFI_STATUS Status; + + Status = gHiiDatabase->RemovePackageList(gHiiDatabase, HiiHandle); + if (EFI_ERROR(Status)) { + DEBUG ((DEBUG_WARN, "Failed to remove HII Package list from HII database: %r\n", Status)); + } + + return Status; +} + +STATIC EFI_GRAPHICS_OUTPUT_PROTOCOL * GetGraphicsOutputProtocol ( VOID @@ -150,5 +166,7 @@ UefiMain ( ForgetGraphicsInfo (&Graphics); + UnregisterHiiPackage (gUmtHiiHandle); + return Status; } |