提交 fc278792 编写于 作者: V vit9696

OpenCoreMisc: Sync with OcSupportPkg

上级 878f9ed6
......@@ -21,6 +21,7 @@ OpenCore Changelog
- Fixed `DefaultBackgroundColor` variable handling
- Added `HideAuxiliary` and `Auxiliary` options
- Fixed picker timeout and log timestamps for VMware
- Fixed NULL parent DeviceHandle for launched tools
#### v0.5.5
- Fixed CPU bus ratio calculation for Nehalem and Westmere
......
......@@ -79,7 +79,9 @@ OcToolLoadEntry (
IN OC_BOOT_ENTRY *ChosenEntry,
OUT VOID **Data,
OUT UINT32 *DataSize,
OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath OPTIONAL
OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath OPTIONAL,
OUT EFI_HANDLE *ParentDeviceHandle OPTIONAL,
OUT EFI_DEVICE_PATH_PROTOCOL **ParentFilePath OPTIONAL
)
{
CHAR16 ToolPath[64];
......@@ -112,6 +114,14 @@ OcToolLoadEntry (
*DevicePath = Storage->DummyDevicePath;
}
if (ParentDeviceHandle != NULL) {
*ParentDeviceHandle = Storage->StorageHandle;
}
if (ParentFilePath != NULL) {
*ParentFilePath = Storage->DummyFilePath;
}
return EFI_SUCCESS;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册