提交 f61a1a35 编写于 作者: V vit9696

AudioDxe: Fix DevicePath not to contain padding

上级 554c7cbd
......@@ -4,6 +4,7 @@ OpenCore Changelog
- Fixed OSBundleLibraries/OSBundleLibaries64 handling
- Added `GraphicsInputMirroring` to fix lost keystrokes in some non-Apple graphical UEFI apps
- Added support for stack canaries (security cookies / stack guards)
- Fixed unintialised memory access in AudioDxe causing audio playback failure
#### v0.7.1
- Added `SyncTableIds` quirk to sync modified table OEM identifiers
......
......@@ -209,9 +209,15 @@ typedef struct {
///
/// Codec address.
///
UINT8 Address;
UINT32 Address;
} EFI_HDA_IO_DEVICE_PATH;
STATIC_ASSERT (
sizeof(EFI_HDA_IO_DEVICE_PATH)
== sizeof(EFI_DEVICE_PATH_PROTOCOL) + sizeof (EFI_GUID) + sizeof (UINT32),
"Unexpected EFI_HDA_IO_DEVICE_PATH size"
);
extern EFI_GUID gEfiHdaIoDevicePathGuid;
/**
......
......@@ -488,7 +488,7 @@ HdaControllerScanCodecs (
HdaIoDevicePathNode.Header.Length[0] = (UINT8)(sizeof (EFI_HDA_IO_DEVICE_PATH));
HdaIoDevicePathNode.Header.Length[1] = (UINT8)((sizeof (EFI_HDA_IO_DEVICE_PATH)) >> 8);
HdaIoDevicePathNode.Guid = gEfiHdaIoDevicePathGuid;
HdaIoDevicePathNode.Address = (UINT8) Index;
HdaIoDevicePathNode.Address = Index;
HdaControllerDev->HdaIoChildren[Index].DevicePath = AppendDevicePathNode (HdaControllerDev->DevicePath, (EFI_DEVICE_PATH_PROTOCOL*)&HdaIoDevicePathNode);
if (HdaControllerDev->HdaIoChildren[Index].DevicePath == NULL) {
Status = EFI_INVALID_PARAMETER;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册