Skip to content

Commit d6867f4

Browse files
uefi: BootServices: Make exit data args compatible with uefi_raw
1 parent 314219d commit d6867f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

uefi/src/table/boot.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@ struct BootServicesInternal {
149149
start_image: unsafe extern "efiapi" fn(
150150
image_handle: uefi_raw::Handle,
151151
exit_data_size: *mut usize,
152-
exit_data: &mut *mut Char16,
152+
exit_data: &mut *mut u16,
153153
) -> Status,
154154
exit: unsafe extern "efiapi" fn(
155155
image_handle: uefi_raw::Handle,
156156
exit_status: Status,
157157
exit_data_size: usize,
158-
exit_data: *mut Char16,
158+
exit_data: *mut u16,
159159
) -> !,
160160
unload_image: unsafe extern "efiapi" fn(image_handle: uefi_raw::Handle) -> Status,
161161
exit_boot_services:
@@ -1125,7 +1125,7 @@ impl BootServices {
11251125
unsafe {
11261126
// TODO: implement returning exit data to the caller.
11271127
let mut exit_data_size: usize = 0;
1128-
let mut exit_data: *mut Char16 = ptr::null_mut();
1128+
let mut exit_data: *mut u16 = ptr::null_mut();
11291129
(self.0.start_image)(image_handle.as_ptr(), &mut exit_data_size, &mut exit_data)
11301130
.to_result()
11311131
}
@@ -1151,7 +1151,7 @@ impl BootServices {
11511151
image_handle.as_ptr(),
11521152
exit_status,
11531153
exit_data_size,
1154-
exit_data,
1154+
exit_data.cast(),
11551155
)
11561156
}
11571157

0 commit comments

Comments
 (0)