From 489c5c67d0b20cb508429ac7ec9dcc613c12dd72 Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Fri, 31 Oct 2014 21:25:44 +0000 Subject: [PATCH] OvmfPkg/XenBusDxe: Fix initialisation of gXenBusDevicePathTemplate .. to avoid the use .member = value syntax as VS does not support it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16296 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/XenBusDxe/XenBus.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/OvmfPkg/XenBusDxe/XenBus.c b/OvmfPkg/XenBusDxe/XenBus.c index 5baaddb143..a7350586b3 100644 --- a/OvmfPkg/XenBusDxe/XenBus.c +++ b/OvmfPkg/XenBusDxe/XenBus.c @@ -45,13 +45,19 @@ STATIC XENBUS_PRIVATE_DATA gXenBusPrivateData; STATIC XENBUS_DEVICE_PATH gXenBusDevicePathTemplate = { - .Vendor.Header.Type = HARDWARE_DEVICE_PATH, - .Vendor.Header.SubType = HW_VENDOR_DP, - .Vendor.Header.Length[0] = (UINT8) sizeof (XENBUS_DEVICE_PATH), - .Vendor.Header.Length[1] = (UINT8) (sizeof (XENBUS_DEVICE_PATH) >> 8), - .Vendor.Guid = XENBUS_PROTOCOL_GUID, - .Type = 0, - .DeviceId = 0 + { // Vendor + { // Vendor.Header + HARDWARE_DEVICE_PATH, // Vendor.Header.Type + HW_VENDOR_DP, // Vendor.Header.SubType + { + (UINT8) (sizeof (XENBUS_DEVICE_PATH)), // Vendor.Header.Length[0] + (UINT8) (sizeof (XENBUS_DEVICE_PATH) >> 8), // Vendor.Header.Length[1] + } + }, + XENBUS_PROTOCOL_GUID, // Vendor.Guid + }, + 0, // Type + 0 // DeviceId };