summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg/Library
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-08-15 00:03:25 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-08-15 00:03:25 +0000
commite148512e5132e38accf2fe8188a9bdf9d1de02d8 (patch)
treed49269a1679a3e0c29f07fb79b4124b745bc7b42 /EmulatorPkg/Library
parent33efdf51b0f123259dec0bfcff49af189b46c411 (diff)
downloadedk2-e148512e5132e38accf2fe8188a9bdf9d1de02d8.tar.gz
edk2-e148512e5132e38accf2fe8188a9bdf9d1de02d8.tar.bz2
edk2-e148512e5132e38accf2fe8188a9bdf9d1de02d8.zip
EmulatorPkg: Fix Visual Studio build for IA32 & X64
This code is untested since there is currently no 'host' component for Win32/Win64. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13633 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmulatorPkg/Library')
-rw-r--r--EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c4
-rw-r--r--EmulatorPkg/Library/SmbiosLib/SmbiosLib.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c b/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c
index 2c47a4f006..46560f8117 100644
--- a/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c
+++ b/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c
@@ -1,6 +1,6 @@
/*++ @file
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -292,6 +292,6 @@ PeCoffGetSizeOfHeaders (
SizeOfHeaders = 0;
}
- return SizeOfHeaders;
+ return (UINT32) SizeOfHeaders;
}
diff --git a/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c b/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c
index 604aa39d0c..3382d7d2a6 100644
--- a/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c
+++ b/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c
@@ -4,7 +4,7 @@
Copyright (c) 2012, Apple Inc. All rights reserved.
-Portitions Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
+Portitions Copyright (c) 2006 - 2012, 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 that accompanies this distribution.
The full text of the license may be found at
@@ -50,10 +50,12 @@ SmbiosLibInitializeFromTemplate (
return EFI_INVALID_PARAMETER;
}
+ Status = EFI_SUCCESS;
+
for (Index = 0; Template[Index].Entry != NULL; Index++) {
Status = SmbiosLibCreateEntry (Template[Index].Entry, Template[Index].StringArray);
}
-
+
return Status;
}