Fix -vet for demo.odin
This commit is contained in:
1 parent
7580ec494b
commit
a019059975
4 files changed
+9
-10
No files matched your search
@@ -17,7 +17,7 @@ unload_library :: proc(library: Library) -> bool {
|
||||
}
|
||||
|
||||
symbol_address :: proc(library: Library, symbol: string) -> (ptr: rawptr, found: bool) {
|
||||
c_str := strings.new_cstring(symbol, context.temp_allocator);
|
||||
c_str := strings.clone_to_cstring(symbol, context.temp_allocator);
|
||||
ptr = win32.get_proc_address(cast(win32.Hmodule)library, c_str);
|
||||
found == ptr != nil;
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user