From: Paul Gofman <pgofman(a)codeweavers.com> --- dlls/ntoskrnl.exe/ntoskrnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index def86ca17e8..b3f45751b99 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -2571,7 +2571,7 @@ PRKTHREAD WINAPI KeGetCurrentThread(void) /* FIXME: we shouldn't need it, GetCurrentThread() should be client thread already */ if (GetCurrentThreadId() == request_thread) - handle = OpenThread( THREAD_QUERY_INFORMATION, FALSE, client_tid ); + handle = OpenThread( MAXIMUM_ALLOWED, FALSE, client_tid ); kernel_object_from_handle( handle, PsThreadType, (void**)&thread ); if (handle != GetCurrentThread()) NtClose( handle ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9502