OpenCoreMisc: Sync with OcSupportPkg

This commit is contained in:
vit9696 2020-02-16 07:25:23 +03:00
parent 878f9ed6f9
commit fc2787927e
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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;
}