mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +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.
|
// Buffer to concatenate the prefix + symbol name.
|
||||||
prefixed_symbol_buf: [2048]u8 = ---
|
prefixed_symbol_buf: [2048]u8 = ---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user