- fun_initialize = GetProcAddress(instance, "SymInitialize");
- fun_cleanup = GetProcAddress(instance, "SymCleanup");
- fun_function_table_access = GetProcAddress(instance, "SymFunctionTableAccess");
- fun_get_line_from_addr = GetProcAddress(instance, "SymGetLineFromAddr");
- fun_get_module_base = GetProcAddress(instance, "SymGetModuleBase");
- fun_get_options = GetProcAddress(instance, "SymGetOptions");
- fun_get_sym_from_addr = GetProcAddress(instance, "SymGetSymFromAddr");
- fun_set_options = GetProcAddress(instance, "SymSetOptions");
- fun_stack_walk = GetProcAddress(instance, "StackWalk");
+ fun_initialize =
+ (fun_initialize_t) GetProcAddress(hlp_dbg_instance, "SymInitialize");
+ fun_cleanup =
+ (fun_cleanup_t) GetProcAddress(hlp_dbg_instance, "SymCleanup");
+ fun_function_table_access =
+ (fun_function_table_access_t) GetProcAddress(hlp_dbg_instance,
+ "SymFunctionTableAccess");
+ fun_get_line_from_addr =
+ (fun_get_line_from_addr_t) GetProcAddress(hlp_dbg_instance,
+ "SymGetLineFromAddr");
+ fun_get_module_base =
+ (fun_get_module_base_t) GetProcAddress(hlp_dbg_instance,
+ "SymGetModuleBase");
+ fun_get_options =
+ (fun_get_options_t) GetProcAddress(hlp_dbg_instance,
+ "SymGetOptions");
+ fun_get_sym_from_addr =
+ (fun_get_sym_from_addr_t) GetProcAddress(hlp_dbg_instance,
+ "SymGetSymFromAddr");
+ fun_set_options =
+ (fun_set_options_t) GetProcAddress(hlp_dbg_instance,
+ "SymSetOptions");
+ fun_stack_walk =
+ (fun_stack_walk_t) GetProcAddress(hlp_dbg_instance, "StackWalk");