Revision: 14795
          http://sourceforge.net/p/edk2/code/14795
Author:   ydong10
Date:     2013-10-22 01:14:54 +0000 (Tue, 22 Oct 2013)
Log Message:
-----------
ShellPkg: Fix copy load option error.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Application/Shell/ShellParametersProtocol.c

Modified: trunk/edk2/ShellPkg/Application/Shell/ShellParametersProtocol.c
===================================================================
--- trunk/edk2/ShellPkg/Application/Shell/ShellParametersProtocol.c     
2013-10-21 11:12:21 UTC (rev 14794)
+++ trunk/edk2/ShellPkg/Application/Shell/ShellParametersProtocol.c     
2013-10-22 01:14:54 UTC (rev 14795)
@@ -2,7 +2,7 @@
   Member functions of EFI_SHELL_PARAMETERS_PROTOCOL and functions for creation,
   manipulation, and initialization of EFI_SHELL_PARAMETERS_PROTOCOL.
 
-  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
   which accompanies this distribution.  The full text of the license may be 
found at
@@ -313,9 +313,7 @@
     FullCommandLine = AllocateZeroPool(Size);
   }
   if (FullCommandLine != NULL) {
-    if (LoadedImage->LoadOptionsSize != 0){
-      StrCpy(FullCommandLine, LoadedImage->LoadOptions);
-    }
+    CopyMem (FullCommandLine, LoadedImage->LoadOptions, 
LoadedImage->LoadOptionsSize);
     //
     // Populate Argc and Argv
     //

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to