Windows: Validate any user handle permissions for syscall callbacks

In the terminate case, if we don't return early then we will delete the
FEX thread object but the actual terminate call that follows will
fail, leaving the thread in a bad state.
This commit is contained in:
Billy Laws committed 2025-08-12 00:51:00 +01:00
1 parent 6f5d4fbf30
commit b2b5ccf69c
4 files changed
+31 -1

No files matched your search

+1 -1
View File
@@ -537,7 +537,7 @@ NTSTATUS WINAPI RtlWow64GetThreadContext(HANDLE, WOW64_CONTEXT*);
NTSTATUS WINAPI RtlWow64SetThreadContext(HANDLE, const WOW64_CONTEXT*);
void WINAPI Wow64ProcessPendingCrossProcessItems(void);
NTSTATUS WINAPI Wow64SystemServiceEx(UINT, UINT*);
NTSTATUS WINAPI RtlWow64SuspendThread(HANDLE,ULONG*);
NTSTATUS WINAPI RtlWow64SuspendThread(HANDLE, ULONG*);
#ifdef __cplusplus
}