From 663e23663d0a385ca409ab29bfc80f1f6e78af40 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 9 Jul 2022 19:38:36 -0700 Subject: [PATCH] fix: fix the GetThreadContext return type https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getthreadcontext --- src/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows.rs b/src/windows.rs index 6b2cd6e90..d962cbaa1 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -375,7 +375,7 @@ ffi! { pub fn GetCurrentProcess() -> HANDLE; pub fn GetCurrentThread() -> HANDLE; pub fn RtlCaptureContext(ContextRecord: PCONTEXT) -> (); - pub fn GetThreadContext(ThreadHandle: HANDLE, ContextRecord: PCONTEXT) -> DWORD; + pub fn GetThreadContext(ThreadHandle: HANDLE, ContextRecord: PCONTEXT) -> BOOL; pub fn SuspendThread(ThreadHandle: HANDLE) -> DWORD; pub fn ResumeThread(ThreadHandle: HANDLE) -> DWORD; pub fn LoadLibraryA(a: *const i8) -> HMODULE;