mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:25:40 +00:00
[OLE32] -Recreate the clipboard window if it isn't a valid window handle. Can happen if the thread that first used the ole clipboard exists which also leads to the clipboard window being destroyed.
svn path=/trunk/; revision=75637
This commit is contained in:
parent
6bb9ea74e5
commit
8da0a3a46d
1 changed files with 6 additions and 0 deletions
|
@ -1869,6 +1869,12 @@ static HWND create_clipbrd_window(void);
|
|||
*/
|
||||
static inline HRESULT get_clipbrd_window(ole_clipbrd *clipbrd, HWND *wnd)
|
||||
{
|
||||
#ifdef __REACTOS__
|
||||
/* The clipboard window can get destroyed if the thread that created it dies so we may need to create it again */
|
||||
if (!IsWindow(clipbrd->window))
|
||||
clipbrd->window = create_clipbrd_window();
|
||||
#endif
|
||||
|
||||
if ( !clipbrd->window )
|
||||
clipbrd->window = create_clipbrd_window();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue