mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
Kernel: Use try_make_weak_ptr() instead of make_weak_ptr()
This commit is contained in:
parent
98c20b65cc
commit
c8ab7bde3b
7 changed files with 19 additions and 18 deletions
|
@ -404,10 +404,10 @@ static ErrorOr<LoadResult> load_elf_object(NonnullOwnPtr<Memory::AddressSpace> n
|
|||
load_base_address,
|
||||
elf_image.entry().offset(load_offset).get(),
|
||||
executable_size,
|
||||
AK::make_weak_ptr_if_nonnull(master_tls_region),
|
||||
TRY(AK::try_make_weak_ptr_if_nonnull(master_tls_region)),
|
||||
master_tls_size,
|
||||
master_tls_alignment,
|
||||
stack_region->make_weak_ptr()
|
||||
TRY(stack_region->try_make_weak_ptr())
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue