public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] MdeModulePkg/TerminalDxe: Refine SetTerminalDevicePath
@ 2017-01-12  2:45 Hao Wu
  0 siblings, 0 replies; only message in thread
From: Hao Wu @ 2017-01-12  2:45 UTC (permalink / raw)
  To: edk2-devel; +Cc: Hao Wu, Ruiyu Ni

Pass '&Node.Header' instead of '&Node' as the 1st parameter to function
SetDevicePathNodeLength().

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
---
 MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c
index 4a1770e..d98bc26 100644
--- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c
+++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c
@@ -1226,7 +1226,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]);
 
   //
-- 
1.9.5.msysgit.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-12  2:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-12  2:45 [PATCH] MdeModulePkg/TerminalDxe: Refine SetTerminalDevicePath Hao Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox