[WIN32K:NTUSER]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 13 Jun 2017 13:27:03 +0000 (13:27 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 13 Jun 2017 13:27:03 +0000 (13:27 +0000)
- Close the clipboard when a thread is destroyed. Fixes 148 user32:clipboard tests
CORE-13414

svn path=/trunk/; revision=75021

reactos/win32ss/user/ntuser/main.c

index 4ca68ae..f9aed03 100644 (file)
@@ -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--;