@@ -355,7 +355,7 @@ pub fn (mut pi RpvProcessInformation) update(mut resolver SymbolResolver)!
355355 method.symbols = resolver.load_symbols (intf_info.location.path, method.addr) or { []string {} }
356356 }
357357
358- if intf_info.sec_callback.addr != & voidptr ( 0 )
358+ if intf_info.sec_callback.addr != unsafe { nil }
359359 {
360360 if intf_info.sec_callback.location.base != intf_info.location.base
361361 {
@@ -403,7 +403,7 @@ pub fn get_process_rpc_server_h(process_handle win.HANDLE)! RpcBasicInfo
403403{
404404 module_array_size := u32 (0 )
405405
406- if ! C.EnumProcessModulesEx (process_handle, & voidptr ( 0 ) , 0 , & module_array_size, u32 (C.LIST_MODULES_ALL))
406+ if ! C.EnumProcessModulesEx (process_handle, unsafe { nil } , 0 , & module_array_size, u32 (C.LIST_MODULES_ALL))
407407 {
408408 return error ('Unable to enumerate process modules.' )
409409 }
@@ -688,7 +688,7 @@ pub fn (interface_info RpcInterfaceBasicInfo) enrich_h(process_handle win.HANDLE
688688 utils.log_debug ('Failed to attach PDB resolver: ${err} ' )
689689 }
690690
691- if interface_info.intf.server_interface.interpreter_info != & voidptr ( 0 )
691+ if interface_info.intf.server_interface.interpreter_info != unsafe { nil }
692692 {
693693 utils.log_debug ('Interface is interpreted stub.' )
694694
@@ -729,7 +729,7 @@ pub fn (interface_info RpcInterfaceBasicInfo) enrich_h(process_handle win.HANDLE
729729 name: ''
730730 }
731731
732- if sec_callback.addr != & voidptr ( 0 )
732+ if sec_callback.addr != unsafe { nil }
733733 {
734734 if sec_location := win.get_location_info_h (process_handle, sec_callback.addr)
735735 {
@@ -870,12 +870,12 @@ pub fn (server_info RpcServerBasicInfo) get_rpc_auth_info_h(process_handle win.H
870870 mut dll_name := ''
871871 mut principal := ''
872872
873- if C.RegQueryValueExA (key_handle, & char (auth_info.auth_svc.str ().str), & voidptr ( 0 ), & voidptr ( 0 ) , p_buffer, & size) == C.ERROR_SUCCESS
873+ if C.RegQueryValueExA (key_handle, & char (auth_info.auth_svc.str ().str), nil, nil , p_buffer, & size) == C.ERROR_SUCCESS
874874 {
875875 dll_name = cstring_to_vstring (p_buffer)
876876 }
877877
878- if C.ReadProcessMemory (process_handle, auth_info.principal, p_buffer, C.MAX_PATH, & voidptr ( 0 ) )
878+ if C.ReadProcessMemory (process_handle, auth_info.principal, p_buffer, C.MAX_PATH, nil )
879879 {
880880 principal = string_from_wide (& u16 (p_buffer))
881881 }
0 commit comments