diff mbox

MdeModulePkg: fix compilation errors

Message ID 1371800898-15026-1-git-send-email-ryan.harkin@linaro.org
State New
Headers show

Commit Message

Ryan Harkin June 21, 2013, 7:48 a.m. UTC
From: Leif Lindholm <leif.lindholm@linaro.org>

This patch fixes a minor error that prevents the native ARM compiler
from building the code.

Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
---
 .../Universal/SetupBrowserDxe/Expression.c         |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c
index cd29e29..29de503 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c
@@ -1511,7 +1511,7 @@  IfrMid (
       Result->BufferLen = (UINT16)((BufferLen - Base) < Length ? (BufferLen - Base) : Length);    
       Result->Buffer = AllocateZeroPool (Result->BufferLen);
       ASSERT (Result->Buffer != NULL);
-      CopyMem (Result->Buffer, &Value[2].Buffer[Base], Result->BufferLen);
+      CopyMem (Result->Buffer, &Buffer[Base], Result->BufferLen);
     }
 
     FreePool (Value[2].Buffer);