1. DataSIze should be set to sizeof (BOOLEAN) before calling GetVariable()

> +      Status = gRT->GetVariable (
> +                      L"IsFirstBoot",

2. Can you please define a macro in this C file for IsFirstBoot string?
e.g.: #define IS_FIRST_BOOT_VAR_NAME L"IsFirstBoot"

> +      if (IsFirstBoot == TRUE) {

3. Please remove "== TRUE". Just use "If (IsFirstBoot)".

> +                        L"IsFirstBoot",
4. Please use the macro defined as above.

> 
> +                        &gEfiCallerIdGuid,
> 
> +                        EFI_VARIABLE_NON_VOLATILE |
> EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS,

5. Please remove "EFI_VARIABLE_RUNTIME_ACCESS".

> +                        1,
6. Please use sizeof (BOOLEAN) instead of "1".



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#72621): https://edk2.groups.io/g/devel/message/72621
Mute This Topic: https://groups.io/mt/81222705/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to