From a5024bb21857313bfcb88126e7cca3930381726a Mon Sep 17 00:00:00 2001 From: Zephyron Date: Mon, 3 Nov 2025 16:19:46 +1000 Subject: [PATCH] kernel: Use CheckMemoryStateContiguous in UnmapCodeMemory Signed-off-by: Zephyron --- src/core/hle/kernel/k_page_table_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/kernel/k_page_table_base.cpp b/src/core/hle/kernel/k_page_table_base.cpp index 986093234..e38c7d78c 100644 --- a/src/core/hle/kernel/k_page_table_base.cpp +++ b/src/core/hle/kernel/k_page_table_base.cpp @@ -1275,7 +1275,7 @@ Result KPageTableBase::UnmapCodeMemory(KProcessAddress dst_address, KProcessAddr // Verify that the destination memory is aliasable code. size_t num_dst_allocator_blocks; - R_TRY(this->CheckMemoryState( + R_TRY(this->CheckMemoryStateContiguous( std::addressof(num_dst_allocator_blocks), dst_address, size, KMemoryState::FlagCanCodeAlias, KMemoryState::FlagCanCodeAlias, KMemoryPermission::None, KMemoryPermission::None, KMemoryAttribute::All & ~KMemoryAttribute::PermissionLocked, KMemoryAttribute::None));