Unify variable types across project; use common type for storing numer of pages

This commit is contained in:
2024-01-29 16:17:51 +01:00
parent bfe2e3899a
commit 8115ae07b6
9 changed files with 55 additions and 55 deletions

View File

@@ -922,12 +922,12 @@ BlpDuplicateDevicePath(IN PEFI_DEVICE_PATH_PROTOCOL DevicePath)
/* Get the device path length */
while(TRUE)
{
Length += *(PUINT16)DevicePath->Length;
Length += *(PUSHORT)DevicePath->Length;
if(DevicePathNode->Type == EFI_END_DEVICE_PATH)
{
break;
}
DevicePathNode = (PEFI_DEVICE_PATH_PROTOCOL)((PUCHAR)DevicePathNode + *(PUINT16)DevicePath->Length);
DevicePathNode = (PEFI_DEVICE_PATH_PROTOCOL)((PUCHAR)DevicePathNode + *(PUSHORT)DevicePath->Length);
}
/* Check length */
@@ -1044,8 +1044,8 @@ BlpFindParentBlockDevice(IN PLIST_ENTRY BlockDevices,
}
/* Get child and parent node lengths */
ChildLength = *(PUINT16)ChildDevicePath->Length;
ParentLength = *(PUINT16)ParentDevicePath->Length;
ChildLength = *(PUSHORT)ChildDevicePath->Length;
ParentLength = *(PUSHORT)ParentDevicePath->Length;
/* Check if lengths match */
if(ChildLength != ParentLength)