From 5e10767ccdbc78e283daca8e1f897f073286af38 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Tue, 13 Jun 2017 13:27:03 +0000 Subject: [PATCH] [WIN32K:NTUSER] - 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 | 2 ++ 1 file changed, 2 insertions(+) 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--; -- 2.17.1