OcDevicePathLib: Fix type mismatches

This commit is contained in:
Download-Fritz 2019-08-15 21:29:39 +02:00
parent 09f2f4fd15
commit 30bfee014d
2 changed files with 5 additions and 5 deletions

View File

@ -173,9 +173,9 @@ OcFileDevicePathFullNameSize (
**/
VOID
OcFileDevicePathFullName (
OUT CHAR16 *PathName,
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
IN UINTN PathNameSize
OUT CHAR16 *PathName,
IN CONST FILEPATH_DEVICE_PATH *FilePath,
IN UINTN PathNameSize
);
/**

View File

@ -736,7 +736,7 @@ OcFileDevicePathFullName (
ASSERT (PathName != NULL);
ASSERT (FilePath != NULL);
ASSERT (IsDevicePathValid (FilePath, 0));
ASSERT (IsDevicePathValid (&FilePath->Header, 0));
ASSERT (PathNameSize == OcFileDevicePathFullNameSize (&FilePath->Header));
do {
@ -748,7 +748,7 @@ OcFileDevicePathFullName (
);
PathName += PathLen;
FilePath = NextDevicePathNode (FilePath);
FilePath = (CONST FILEPATH_DEVICE_PATH *)NextDevicePathNode (FilePath);
} while (!IsDevicePathEnd (FilePath));
*PathName = CHAR_NULL;
}