Skip to content

Commit

Permalink
phlib firmware cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy-s committed Jan 8, 2025
1 parent 2df035b commit f297e46
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions phlib/include/phfirmware.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

EXTERN_C_START

#define PH_SMBIOS_CONTAINS_FIELD(Entry, Item, Field) \
(RTL_CONTAINS_FIELD(&(Entry)->Item, (Entry)->Header.Length, Field))
#define PH_SMBIOS_CONTAINS_STRING(Entry, Item, Field) \
(PH_SMBIOS_CONTAINS_FIELD(Entry, Item, Field) && \
(Entry)->Item.Field != SMBIOS_INVALID_STRING)

typedef union _PH_SMBIOS_ENTRY
{
SMBIOS_HEADER Header;
Expand Down Expand Up @@ -89,12 +95,6 @@ PhEnumSMBIOS(
_In_opt_ PVOID Context
);

#define PH_SMBIOS_CONTAINS_FIELD(Entry, Item, Field) \
(RTL_CONTAINS_FIELD(&(Entry)->Item, (Entry)->Header.Length, Field))
#define PH_SMBIOS_CONTAINS_STRING(Entry, Item, Field) \
(PH_SMBIOS_CONTAINS_FIELD(Entry, Item, Field) && \
(Entry)->Item.Field != SMBIOS_INVALID_STRING)

PHLIBAPI
NTSTATUS
NTAPI
Expand Down

0 comments on commit f297e46

Please sign in to comment.