From: Thomas Faber Date: Tue, 13 Jun 2017 13:27:03 +0000 (+0000) Subject: [WIN32K:NTUSER] X-Git-Tag: ReactOS-0.4.6~327 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=5e10767ccdbc78e283daca8e1f897f073286af38 [WIN32K:NTUSER] - Close the clipboard when a thread is destroyed. Fixes 148 user32:clipboard tests CORE-13414 svn path=/trunk/; revision=75021 --- diff --git a/reactos/win32ss/user/ntuser/main.c b/reactos/win32ss/user/ntuser/main.c index 4ca68ae7286..f9aed03b77e 100644 --- a/reactos/win32ss/user/ntuser/main.c +++ b/reactos/win32ss/user/ntuser/main.c @@ -708,6 +708,8 @@ ExitThreadCallback(PETHREAD Thread) ptiCurrent->TIF_flags |= TIF_DONTATTACHQUEUE; ptiCurrent->pClientInfo->dwTIFlags = ptiCurrent->TIF_flags; + UserCloseClipboard(); + /* Decrement thread count and check if its 0 */ ppiCurrent->cThreads--;