mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
MdeModulePkg/TerminalDxe: Refine SetTerminalDevicePath
Pass '&Node.Header' instead of '&Node' as the 1st parameter to function SetDevicePathNodeLength(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
parent
4d5c1d50d8
commit
178b6b5d87
@ -1221,7 +1221,7 @@ SetTerminalDevicePath (
|
||||
ASSERT (TerminalType < ARRAY_SIZE (mTerminalType));
|
||||
Node.Header.Type = MESSAGING_DEVICE_PATH;
|
||||
Node.Header.SubType = MSG_VENDOR_DP;
|
||||
SetDevicePathNodeLength (&Node, sizeof (VENDOR_DEVICE_PATH));
|
||||
SetDevicePathNodeLength (&Node.Header, sizeof (VENDOR_DEVICE_PATH));
|
||||
CopyGuid (&Node.Guid, mTerminalType[TerminalType]);
|
||||
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user