Skip to content

Commit 7ce7f7b

Browse files
committed
Add CompareGuid method
1 parent 071dc43 commit 7ce7f7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qiling/os/uefi/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ def str_to_guid(guid: str) -> EFI_GUID:
167167

168168
return EFI_GUID.from_buffer_copy(buff)
169169

170+
def CompareGuid(guid1: EFI_GUID, guid2: EFI_GUID) -> bool:
171+
return bytes(guid1) == bytes(guid2)
172+
170173
def install_configuration_table(context, key: str, table: int):
171174
"""Create a new Configuration Table entry and add it to the list.
172175

0 commit comments

Comments
 (0)