diff --git a/proc/registers_windows_amd64.go b/proc/registers_windows_amd64.go index 75f0b19d34b101614bb4bdaeeb0f5e7a589b3a07..edfd87c55adca327940109f7601909866ae82a36 100644 --- a/proc/registers_windows_amd64.go +++ b/proc/registers_windows_amd64.go @@ -124,7 +124,7 @@ func registers(thread *Thread) (Registers, error) { } var threadInfo _THREAD_BASIC_INFORMATION - status := _NtQueryInformationThread(syscall.Handle(thread.os.hThread), ThreadBasicInformation, uintptr(unsafe.Pointer(&threadInfo)), uint32(unsafe.Sizeof(threadInfo)), nil) + status := _NtQueryInformationThread(syscall.Handle(thread.os.hThread), _ThreadBasicInformation, uintptr(unsafe.Pointer(&threadInfo)), uint32(unsafe.Sizeof(threadInfo)), nil) if !_NT_SUCCESS(status) { return nil, fmt.Errorf("failed to get thread_basic_information") } diff --git a/proc/syscall_windows.go b/proc/syscall_windows.go index 5fa59fe0bef20f8f873a664d462e11e7d65ccdc8..f0123f8cec7d8f3ec171680721b7d2d21e17601b 100644 --- a/proc/syscall_windows.go +++ b/proc/syscall_windows.go @@ -23,7 +23,7 @@ type _THREAD_BASIC_INFORMATION struct { } const ( - ThreadBasicInformation = 0 + _ThreadBasicInformation = 0 ) func _NT_SUCCESS(x _NTSTATUS) bool {