File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub struct Args {
1616pub fn args ( ) -> Args {
1717 // SAFETY: Each loaded image has an image handle that supports EFI_LOADED_IMAGE_PROTOCOL
1818 let protocol =
19- helpers:: current_handle_protocol :: < loaded_image:: Protocol > ( loaded_image:: PROTOCOL_GUID )
19+ helpers:: image_handle_protocol :: < loaded_image:: Protocol > ( loaded_image:: PROTOCOL_GUID )
2020 . unwrap ( ) ;
2121
2222 let lp_size = unsafe { ( * protocol. as_ptr ( ) ) . load_options_size } as usize ;
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ pub(crate) unsafe fn close_event(evt: NonNull<crate::ffi::c_void>) -> io::Result
142142
143143/// Get the Protocol for current system handle.
144144/// Note: Some protocols need to be manually freed. It is the callers responsibility to do so.
145- pub ( crate ) fn current_handle_protocol < T > ( protocol_guid : Guid ) -> Option < NonNull < T > > {
145+ pub ( crate ) fn image_handle_protocol < T > ( protocol_guid : Guid ) -> Option < NonNull < T > > {
146146 let system_handle = uefi:: env:: try_image_handle ( ) ?;
147147 open_protocol ( system_handle, protocol_guid) . ok ( )
148148}
You can’t perform that action at this time.
0 commit comments