[if gte mso 9]>

[edk2] ShellPkg: Fix copy load option error

Subject: [edk2] ShellPkg: Fix copy load option error

From: "Dong, Eric" <eric.dong@intel.com>

To: "Carsey, Jaben" <jaben.carsey@intel.com>, "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>

Date: 2013-10-21 18:43:47

Please review the attached patch file.

 

Fix copy load option error, if the load option is not a string but a guid info, current code will cause system hang. Refine the logic about  how to copy load option, use CopyMem and LoadOptionSize instead of StrCpy.

 

Thanks,

Eric

 

 

ShellPkg: Fix copy load option error.

 

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Eric Dong <eric.dong@intel.com>