Fix -vet for demo.odin

This commit is contained in:
gingerBill
2019-03-30 10:52:53 +00:00
parent 7580ec494b
commit a019059975
4 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -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;