Paul Gofman : ntdll: Remove wait timeout in get_thread_context().
Alexandre Julliard
julliard at winehq.org
Tue Apr 13 16:31:21 CDT 2021
Module: wine
Branch: master
Commit: 3386560057c0d30461af0973fd9dac9871387143
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3386560057c0d30461af0973fd9dac9871387143
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Mon Apr 12 22:14:03 2021 +0300
ntdll: Remove wait timeout in get_thread_context().
Fixes hangs during loading or after campaign start in
Mount & Blade II: Bannerlord.
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/unix/thread.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/dlls/ntdll/unix/thread.c b/dlls/ntdll/unix/thread.c
index 1a882a99855..543a214e056 100644
--- a/dlls/ntdll/unix/thread.c
+++ b/dlls/ntdll/unix/thread.c
@@ -617,13 +617,8 @@ NTSTATUS get_thread_context( HANDLE handle, context_t *context, unsigned int fla
if (ret == STATUS_PENDING)
{
- LARGE_INTEGER timeout;
- timeout.QuadPart = -1000000;
- if (NtWaitForSingleObject( handle, FALSE, &timeout ))
- {
- NtClose( handle );
- return STATUS_ACCESS_DENIED;
- }
+ NtWaitForSingleObject( handle, FALSE, NULL );
+
SERVER_START_REQ( get_thread_context )
{
req->handle = wine_server_obj_handle( handle );
More information about the wine-cvs
mailing list