Skip to content

Commit 16acacf

Browse files
kraxelmergify[bot]
authored andcommittedDec 23, 2022
OvmfPkg: fix PlatformConfig
The Hii form is named "MainFormState" and the EFI variable is named "PlatformConfig". Take into account the different names. Fixes: aefcc91 ("OvmfPkg/PlatformDxe: Handle all requests in ExtractConfig and RouteConfig") Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent d8d4abd commit 16acacf

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
 

‎OvmfPkg/PlatformDxe/Platform.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ ExtractConfig (
258258
!HiiIsConfigHdrMatch (
259259
Request,
260260
&gOvmfPlatformConfigGuid,
261-
mVariableName
261+
mHiiFormName
262262
)
263263
)
264264
{
@@ -447,7 +447,7 @@ RouteConfig (
447447
!HiiIsConfigHdrMatch (
448448
Configuration,
449449
&gOvmfPlatformConfigGuid,
450-
mVariableName
450+
mHiiFormName
451451
)
452452
)
453453
{

‎OvmfPkg/PlatformDxe/PlatformConfig.c

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
// Name of the UEFI variable that we use for persistent storage.
2323
//
2424
CHAR16 mVariableName[] = L"PlatformConfig";
25+
CHAR16 mHiiFormName[] = L"MainFormState";
2526

2627
/**
2728
Serialize and persistently save platform configuration.

‎OvmfPkg/PlatformDxe/PlatformConfig.h

+1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ PlatformConfigLoad (
5151
#define PLATFORM_CONFIG_F_DOWNGRADE BIT63
5252

5353
extern CHAR16 mVariableName[];
54+
extern CHAR16 mHiiFormName[];
5455

5556
#endif // _PLATFORM_CONFIG_H_

0 commit comments

Comments
 (0)