mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 21:15:43 +00:00
fix(preload): Steam's overlay finds the robust list in Wine games without proot (#3577)
thread_robust_head() read the candidate list heads with process_vm_readv(getpid()).
In Wine games run without proot, and in any process whose first thread has exited,
that read fails with ESRCH, so the emulated get_robust_list answered ENOSYS and
Steam's arm64 gameoverlayrenderer.so aborted the game ("futex robust_list not
initialized by pthreads"). The read now goes through gettid().
This commit is contained in:
1 parent
e04e38b44c
commit
80dbec57d7
2 files changed
+88
-1
No files matched your search
@@ -140,7 +140,7 @@ static struct robust_list_head *thread_robust_head(void) {
|
||||
if ((uintptr_t)candidate & (sizeof(void *) - 1)) {
|
||||
continue;
|
||||
}
|
||||
if (process_vm_readv(getpid(), &local, 1, &remote, 1, 0) != (ssize_t)sizeof(copy)) {
|
||||
if (process_vm_readv(gettid(), &local, 1, &remote, 1, 0) != (ssize_t)sizeof(copy)) {
|
||||
continue;
|
||||
}
|
||||
uintptr_t entry = (uintptr_t)copy.list.next;
|
||||
|
||||
Reference in new issue
Block a user