dynlib: fix initialize_symbols when there is no field for the handle in the struct
This commit is contained in:
1 parent
05add96fc8
commit
189b4782fb
1 file changed
+5
@@ -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