mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 15:31:42 +03:00
[efi] Add efi_path_terminate() utility function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -96,9 +96,7 @@ efi_image_path ( struct image *image, EFI_DEVICE_PATH_PROTOCOL *parent ) {
|
||||
efi_snprintf ( filepath->PathName, ( name_len + 1 /* NUL */ ),
|
||||
"%s", image->name );
|
||||
end = ( ( ( void * ) filepath ) + filepath_len );
|
||||
end->Type = END_DEVICE_PATH_TYPE;
|
||||
end->SubType = END_ENTIRE_DEVICE_PATH_SUBTYPE;
|
||||
end->Length[0] = sizeof ( *end );
|
||||
efi_path_terminate ( end );
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user