summaryrefslogtreecommitdiff
path: root/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-25 10:57:55 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-25 10:57:55 +0000
commit697f4d59cc9832c26cffb03b32f05400105143dc (patch)
tree52f25fae62b3c33c012bfddc2d79e174f7fd47cb /MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
parent1051e1d437760561fe7b9d1d2d2b94c9969626de (diff)
downloadedk2-platforms-697f4d59cc9832c26cffb03b32f05400105143dc.tar.xz
Make the module pass CYGWIN GCC build
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3920 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c')
-rw-r--r--MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
index 7869499a83..38f9682229 100644
--- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
+++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
@@ -34,11 +34,13 @@
//
// Template for an end-of-device path node.
//
-STATIC EFI_DEVICE_PATH_PROTOCOL mEndDevicePath[] = {
+STATIC EFI_DEVICE_PATH_PROTOCOL mEndDevicePath = {
END_DEVICE_PATH_TYPE,
END_ENTIRE_DEVICE_PATH_SUBTYPE,
- END_DEVICE_PATH_LENGTH,
- 0
+ {
+ END_DEVICE_PATH_LENGTH,
+ 0
+ }
};
/**
@@ -153,7 +155,7 @@ AppendDevicePath (
// If there's only 1 path, just duplicate it.
//
if (FirstDevicePath == NULL) {
- return DuplicateDevicePath ((SecondDevicePath != NULL) ? SecondDevicePath : mEndDevicePath);
+ return DuplicateDevicePath ((SecondDevicePath != NULL) ? SecondDevicePath : &mEndDevicePath);
}
if (SecondDevicePath == NULL) {
@@ -217,7 +219,7 @@ AppendDevicePathNode (
UINTN NodeLength;
if (DevicePathNode == NULL) {
- return DuplicateDevicePath ((DevicePath != NULL) ? DevicePath : mEndDevicePath);
+ return DuplicateDevicePath ((DevicePath != NULL) ? DevicePath : &mEndDevicePath);
}
//
// Build a Node that has a terminator on it