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

Function DevicePathToXStringW

rEFIt_UEFI/refit/lib.cpp:1630–1639  ·  view source on GitHub ↗

This function converts an input device structure to a Unicode string. @param DevPath A pointer to the device path structure. @return A new allocated Unicode string that represents the device path. **/

Source from the content-addressed store, hash-verified

1628
1629 **/
1630XStringW DevicePathToXStringW (
1631 IN EFI_DEVICE_PATH_PROTOCOL *DevPath
1632 )
1633{
1634 CHAR16* DevicePathStr = ConvertDevicePathToText (DevPath, TRUE, TRUE);
1635 XStringW returnValue;
1636 returnValue.stealValueFrom(DevicePathStr); // do not FreePool FilePath, it's now owned by returnValue
1637 return returnValue;
1638
1639}
1640
1641//
1642// Aptio UEFI returns File DevPath as 2 nodes (dir, file)

Callers 3

FindStartupDiskVolumeFunction · 0.85
GetDevicesFunction · 0.85
SetDevicesFunction · 0.85

Calls 1

stealValueFromMethod · 0.80

Tested by

no test coverage detected