File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub struct Args {
16
16
pub fn args ( ) -> Args {
17
17
// SAFETY: Each loaded image has an image handle that supports EFI_LOADED_IMAGE_PROTOCOL
18
18
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 )
20
20
. unwrap ( ) ;
21
21
22
22
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
142
142
143
143
/// Get the Protocol for current system handle.
144
144
/// 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 > > {
146
146
let system_handle = uefi:: env:: try_image_handle ( ) ?;
147
147
open_protocol ( system_handle, protocol_guid) . ok ( )
148
148
}
You can’t perform that action at this time.
0 commit comments