mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-06 18:54:12 +00:00
dynlib: fix initialize_symbols when there is no field for the handle in the struct
This commit is contained in:
@@ -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 = ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user