Module: wine Branch: master Commit: 8dc2cc24d713ff9c9b38039e33ae951f90372e69 URL: https://gitlab.winehq.org/wine/wine/-/commit/8dc2cc24d713ff9c9b38039e33ae951...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Mar 8 09:51:56 2024 +0100
ntdll: Don't copy a missing context in get_thread_context().
Fixes a test failure on ARM64EC.
---
dlls/ntdll/unix/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/thread.c b/dlls/ntdll/unix/thread.c index 7f2f1b9a50e..60c833b0320 100644 --- a/dlls/ntdll/unix/thread.c +++ b/dlls/ntdll/unix/thread.c @@ -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 );