From 6c76e4fa39ab720ba4911fcc2a626afee176e28a Mon Sep 17 00:00:00 2001 From: andrewfish Date: Sat, 22 Dec 2012 00:44:04 +0000 Subject: Fix structure init issues. signed-off-by:afish@apple.com git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14014 6f19259b-4bc3-4df7-8a09-765794883524 --- EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h | 6 ++++-- EmulatorPkg/Library/EmuBdsLib/PlatformData.c | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'EmulatorPkg') diff --git a/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h b/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h index cf2bb3e..a099fec 100644 --- a/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h +++ b/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h @@ -42,8 +42,10 @@ extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[]; { \ END_DEVICE_PATH_TYPE,\ END_ENTIRE_DEVICE_PATH_SUBTYPE,\ - END_DEVICE_PATH_LENGTH,\ - 0\ + { \ + END_DEVICE_PATH_LENGTH,\ + 0\ + }\ } diff --git a/EmulatorPkg/Library/EmuBdsLib/PlatformData.c b/EmulatorPkg/Library/EmuBdsLib/PlatformData.c index 37e35f5..977da6a 100644 --- a/EmulatorPkg/Library/EmuBdsLib/PlatformData.c +++ b/EmulatorPkg/Library/EmuBdsLib/PlatformData.c @@ -32,6 +32,7 @@ EMU_PLATFORM_UGA_DEVICE_PATH gGopDevicePath = { 0 }, { + { HARDWARE_DEVICE_PATH, HW_VENDOR_DP, { @@ -39,7 +40,8 @@ EMU_PLATFORM_UGA_DEVICE_PATH gGopDevicePath = { (UINT8) ((sizeof (EMU_VENDOR_DEVICE_PATH_NODE)) >> 8) }, EMU_GRAPHICS_WINDOW_PROTOCOL_GUID, - 0 + }, + 0 }, gEndEntire }; -- cgit v1.1