From 888d052418f9e0f4562e931a37f910e4178a0eb1 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Thu, 18 Aug 2016 13:16:05 +0000 Subject: [PATCH] [BROWSEUI] - Use OleFlushClipboard while the browser window is being destroyed in order to make make any IDataObject that is in clipboard to render so as make is data available after the browser thread exits. CORE-11565 svn path=/trunk/; revision=72325 --- reactos/dll/win32/browseui/shellbrowser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/dll/win32/browseui/shellbrowser.cpp b/reactos/dll/win32/browseui/shellbrowser.cpp index 7ab235c228d..b260e1bc9aa 100644 --- a/reactos/dll/win32/browseui/shellbrowser.cpp +++ b/reactos/dll/win32/browseui/shellbrowser.cpp @@ -3350,6 +3350,10 @@ LRESULT CShellBrowser::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &b LRESULT CShellBrowser::OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) { HRESULT hr; + + /* The current thread is about to go down so render any IDataObject that may be left in the clipboard */ + OleFlushClipboard(); + // TODO: rip down everything { fCurrentShellView->DestroyViewWindow();