From edce71aa5eff87c017690d555b49968ae7cbfa93 Mon Sep 17 00:00:00 2001 From: alexlee820 Date: Tue, 2 Dec 2025 18:27:57 +0800 Subject: [PATCH 1/2] Update BokuLoader.c Fix the null pointer error in windows 11 --- src/BokuLoader.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BokuLoader.c b/src/BokuLoader.c index e16145c..4063273 100644 --- a/src/BokuLoader.c +++ b/src/BokuLoader.c @@ -1031,6 +1031,9 @@ BYTE * loaded_module_base_from_hash(DWORD hash) LDR_DATA_TABLE_ENTRY * this_module_entry = first_module_entry; do { + this_module_entry = (LDR_DATA_TABLE_ENTRY *) this_module_entry->InLoadOrderLinks.Flink; + continue; + } utf16_to_utf8( this_module_entry->BaseDllName.Buffer, (this_module_entry->BaseDllName.Length * 2), From 02bbdee8809256c86869f7075dbf5980e9e35f1f Mon Sep 17 00:00:00 2001 From: alexlee820 Date: Tue, 2 Dec 2025 18:32:17 +0800 Subject: [PATCH 2/2] Fix win11 null pointer bug Fix win11 null pointer bug --- src/BokuLoader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BokuLoader.c b/src/BokuLoader.c index 4063273..f106345 100644 --- a/src/BokuLoader.c +++ b/src/BokuLoader.c @@ -1031,6 +1031,8 @@ BYTE * loaded_module_base_from_hash(DWORD hash) LDR_DATA_TABLE_ENTRY * this_module_entry = first_module_entry; do { + if(!this_module_entry->BaseDllName.Buffer){ + this_module_entry = (LDR_DATA_TABLE_ENTRY *) this_module_entry->InLoadOrderLinks.Flink; continue; }