mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
08c1b0a039
commit
3386560057
1 changed files with 2 additions and 7 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue