MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / FileDevicePathFileToXStringW

Function FileDevicePathFileToXStringW

rEFIt_UEFI/refit/lib.cpp:1674–1691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1672}
1673
1674XStringW FileDevicePathFileToXStringW(IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
1675{
1676 EFI_DEVICE_PATH_PROTOCOL *Node;
1677
1678 if (DevPath == NULL) {
1679 return NullXStringW;
1680 }
1681
1682 Node = (EFI_DEVICE_PATH_PROTOCOL *)DevPath;
1683 while (!IsDevicePathEnd(Node)) {
1684 if ((Node->Type == MEDIA_DEVICE_PATH) &&
1685 (Node->SubType == MEDIA_FILEPATH_DP)) {
1686 return FileDevicePathToXStringW(Node);
1687 }
1688 Node = NextDevicePathNode(Node);
1689 }
1690 return NullXStringW;
1691}
1692
1693BOOLEAN DumpVariable(CHAR16* Name, EFI_GUID* Guid, INTN DevicePathAt)
1694{

Callers

nothing calls this directly

Calls 3

FileDevicePathToXStringWFunction · 0.85
IsDevicePathEndFunction · 0.50
NextDevicePathNodeFunction · 0.50

Tested by

no test coverage detected