diff options
author | Hao Wu <hao.a.wu@intel.com> | 2017-01-12 09:45:31 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2017-01-16 08:45:43 +0800 |
commit | 178b6b5d87975d57c763cad152a93fe0a0d32c2f (patch) | |
tree | 0a349e13c4dc36638440bd42ad90642f9cf2454d /MdeModulePkg/Universal | |
parent | 4d5c1d50d87201b0a0e694ce160b9b0c49734200 (diff) | |
download | edk2-platforms-178b6b5d87975d57c763cad152a93fe0a0d32c2f.tar.xz |
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>
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c index 6ccbc28e85..5d55969c96 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c @@ -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]);
//
|