dynlib: fix initialize_symbols when there is no field for the handle in the struct

This commit is contained in:
Laytan Laats
2025-03-03 20:33:33 +01:00
parent 05add96fc8
commit 189b4782fb

View File

@@ -145,6 +145,11 @@ initialize_symbols :: proc(
}
}
// No field for it in the struct.
if handle == nil {
handle = load_library(library_path) or_return
}
// Buffer to concatenate the prefix + symbol name.
prefixed_symbol_buf: [2048]u8 = ---