Jinoh Kang (@iamahuman) commented about server/winstation.c:
/* get the thread current desktop */ DECL_HANDLER(get_thread_desktop) { + struct desktop *desktop; struct thread *thread;
if (!(thread = get_thread_from_id( req->tid ))) return; reply->handle = thread->desktop; + reply->index = -1; + + if ((desktop = get_thread_desktop( thread, 0 ))) + { + const desktop_shm_t *desktop_shm = get_shared_desktop( desktop->session_index ); + reply->index = desktop->session_index; + reply->object_id = desktop_shm->obj.id; (nit) extra spaces before `=`
```suggestion:-1+0 reply->index = desktop->session_index; reply->object_id = desktop_shm->obj.id; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3103#note_64982