]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Make the module pass CYGWIN GCC build
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 25 Sep 2007 10:57:55 +0000 (10:57 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 25 Sep 2007 10:57:55 +0000 (10:57 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3920 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c

index 7869499a83f2f99d9ae1fde495d1d943bc41e47b..38f9682229f9929bea4a93b3578ac58da5bab2ae 100644 (file)
 //\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
@@ -153,7 +155,7 @@ AppendDevicePath (
   // 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
@@ -217,7 +219,7 @@ AppendDevicePathNode (
   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