]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix VS2013 build failure.
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 13 Aug 2014 06:31:08 +0000 (06:31 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 13 Aug 2014 06:31:08 +0000 (06:31 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15795 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/Library/NvVarsFileLib/FsAccess.c
OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c
OvmfPkg/QemuVideoDxe/VbeShim.c

index 937e4abe196ddc9ccecd20628bd398c8c1e82b01..66b5566c7518f5b09b6d464d6bfec403253e2845 100644 (file)
@@ -1,7 +1,7 @@
 /** @file
   File System Access for NvVarsFileLib
 
-  Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2004 - 2014, 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
@@ -432,6 +432,8 @@ SaveNvVarsToFs (
   VOID                        *VariableData;
   EFI_HANDLE                  SerializedVariables;
 
+  SerializedVariables = NULL;
+
   Status = SerializeVariablesNewInstance (&SerializedVariables);
   if (EFI_ERROR (Status)) {
     return Status;
index 9f953acf792ce37bddca6baca4974f0bc13659b7..2a1ca88c2c13ed4be225fd2d16b1b509d9e424e3 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Platform BDS customizations.\r
 \r
-  Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -367,7 +367,8 @@ Returns:
   EFI_DEVICE_PATH_PROTOCOL  *DevicePath;\r
   EFI_DEVICE_PATH_PROTOCOL  *GopDevicePath;\r
 \r
-  DevicePath = NULL;\r
+  DevicePath    = NULL;\r
+  GopDevicePath = NULL;\r
   Status = gBS->HandleProtocol (\r
                   DeviceHandle,\r
                   &gEfiDevicePathProtocolGuid,\r
index ae25b644cfc0490c48414f5bf8ef3c7b27ea0b1d..81c11664f4938a514375ff6a94657dadf69629f3 100644 (file)
@@ -268,8 +268,8 @@ InstallVbeShim (
   //\r
   // Second, point the Int10h vector at the shim.\r
   //\r
-  Int0x10->Segment = SegmentC >> 4;\r
-  Int0x10->Offset  = (EFI_PHYSICAL_ADDRESS)(UINTN)(VbeModeInfo + 1) - SegmentC;\r
+  Int0x10->Segment = (UINT16) (SegmentC >> 4);\r
+  Int0x10->Offset  = (UINT16) ((UINTN) (VbeModeInfo + 1) - SegmentC);\r
 \r
   DEBUG ((EFI_D_INFO, "%a: VBE shim installed\n", __FUNCTION__));\r
 }\r