1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ntdll: Don't copy a missing context in get_thread_context().

Fixes a test failure on ARM64EC.
This commit is contained in:
Alexandre Julliard 2024-03-08 09:51:56 +01:00
parent e92ba2de43
commit 8dc2cc24d7

View file

@ -1790,7 +1790,7 @@ NTSTATUS get_thread_context( HANDLE handle, void *context, BOOL *self, USHORT ma
}
SERVER_END_REQ;
}
if (!ret)
if (!ret && count)
{
ret = context_from_server( context, &server_contexts[0], machine );
if (!ret && count > 1) ret = context_from_server( context, &server_contexts[1], machine );