diff options
author | Joursoir <chat@joursoir.net> | 2022-04-27 13:02:48 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-04-27 13:02:48 +0300 |
commit | df423fd45d6c46a227b018c58e9e5b8b237078f5 (patch) | |
tree | b4768dc56db3f2d041cfdab5cae366180a7b216a /UefiMonitorTest | |
parent | c485c33c84078b99fb5925054dc9cfc9941dbbb6 (diff) | |
download | umt-df423fd45d6c46a227b018c58e9e5b8b237078f5.tar.gz umt-df423fd45d6c46a227b018c58e9e5b8b237078f5.tar.bz2 umt-df423fd45d6c46a227b018c58e9e5b8b237078f5.zip |
main: remove HII string packages
Diffstat (limited to 'UefiMonitorTest')
-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; } |