Alexandre Julliard pushed to branch master at wine / wine Commits: b04de9af by Aaron Yourk at 2026-05-19T23:19:09+02:00 ole32/tests: Add test for OLE clipboard reuse across STA threads. Test that OleSetClipboard succeeds when called from a second STA thread after the first thread (which created the cached clipboard window) has exited. Currently this fails because the stale window handle is never invalidated. Based on the bug reproducer source. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59519 - - - - - 32bffb77 by Aaron Yourk at 2026-05-19T23:19:09+02:00 ole32: Validate cached clipboard window handle in get_clipbrd_window. The OLE clipboard caches a per-process window handle. When the STA thread that created this window terminates, the window is destroyed but the stale handle remains cached. Subsequent OleSetClipboard calls use this stale handle, causing OpenClipboard to fail with CLIPBRD_E_CANT_OPEN. Check whether the cached window is still valid using IsWindow() before returning it. If the window has been destroyed, clear the cache so a fresh window is created on the current thread. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59519 - - - - - 2 changed files: - dlls/ole32/clipboard.c - dlls/ole32/tests/clipboard.c View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/c717254009edc6fe45ad31967f77fe... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/c717254009edc6fe45ad31967f77fe... You're receiving this email because of your account on gitlab.winehq.org. Manage all notifications: https://gitlab.winehq.org/-/profile/notifications | Help: https://gitlab.winehq.org/help