//\r
// Template for an end-of-device path node.\r
//\r
-STATIC EFI_DEVICE_PATH_PROTOCOL mEndDevicePath[] = {\r
+STATIC EFI_DEVICE_PATH_PROTOCOL mEndDevicePath = {\r
END_DEVICE_PATH_TYPE,\r
END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
- END_DEVICE_PATH_LENGTH,\r
- 0\r
+ {\r
+ END_DEVICE_PATH_LENGTH,\r
+ 0\r
+ }\r
};\r
\r
/**\r
// If there's only 1 path, just duplicate it.\r
//\r
if (FirstDevicePath == NULL) {\r
- return DuplicateDevicePath ((SecondDevicePath != NULL) ? SecondDevicePath : mEndDevicePath);\r
+ return DuplicateDevicePath ((SecondDevicePath != NULL) ? SecondDevicePath : &mEndDevicePath);\r
}\r
\r
if (SecondDevicePath == NULL) {\r
UINTN NodeLength;\r
\r
if (DevicePathNode == NULL) {\r
- return DuplicateDevicePath ((DevicePath != NULL) ? DevicePath : mEndDevicePath);\r
+ return DuplicateDevicePath ((DevicePath != NULL) ? DevicePath : &mEndDevicePath);\r
}\r
//\r
// Build a Node that has a terminator on it\r