git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3920
6f19259b-4bc3-4df7-8a09-
765794883524
//\r
// Template for an end-of-device path node.\r
//\r
//\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_TYPE,\r
END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
- END_DEVICE_PATH_LENGTH,\r
- 0\r
+ {\r
+ END_DEVICE_PATH_LENGTH,\r
+ 0\r
+ }\r
// If there's only 1 path, just duplicate it.\r
//\r
if (FirstDevicePath == NULL) {\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
}\r
\r
if (SecondDevicePath == NULL) {\r
UINTN NodeLength;\r
\r
if (DevicePathNode == 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
}\r
//\r
// Build a Node that has a terminator on it\r