aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/module/shallow_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/sys/module/shallow_module.c')
-rw-r--r--com32/lib/sys/module/shallow_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/module/shallow_module.c b/com32/lib/sys/module/shallow_module.c
index ed196cd9..64e2679b 100644
--- a/com32/lib/sys/module/shallow_module.c
+++ b/com32/lib/sys/module/shallow_module.c
@@ -142,7 +142,7 @@ int module_load_shallow(struct elf_module *module) {
CHECKED(res, check_symbols(module), error);
// Add the module at the beginning of the module list
- list_add(&module->list, &modules);
+ list_add(&module->list, &modules_head);
// The file image is no longer needed
image_unload(module);