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
This commit is contained in:
qwang12 2007-09-25 10:57:55 +00:00
parent 1051e1d437
commit 697f4d59cc
1 changed files with 7 additions and 5 deletions

View File

@ -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