Jinoh Kang (@iamahuman) commented about dlls/win32u/winstation.c:
+ break; + } + shared_session_release( session ); + } + + if (!object->shared) + { + WARN( "Failed to find object type %u for thread %04x\n", type, tid ); + if (session) shared_session_release( session ); + free( object ); + return NULL; + } + + /* every object holds an additional weak ref on their session */ + shared_session_acquire_weak( session ); + object->session = session; [stylistic nit] how about returning arg as-is from `shared_session_acquire_weak` so that:
```suggestion:-1+0 object->session = shared_session_acquire_weak( session ); ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3103#note_63264