Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
83367e87
Commit
83367e87
authored
Mar 07, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Properly maintain clipboard viewers chain.
Without this CloseClipboard() will crash on Windows 8 if executed after test_messages().
parent
c91c8ca9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
clipboard.c
dlls/user32/tests/clipboard.c
+9
-1
No files found.
dlls/user32/tests/clipboard.c
View file @
83367e87
...
...
@@ -270,6 +270,7 @@ static void test_synthesized(void)
}
static
CRITICAL_SECTION
clipboard_cs
;
static
HWND
next_wnd
;
static
LRESULT
CALLBACK
clipboard_wnd_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
switch
(
msg
)
{
...
...
@@ -277,7 +278,14 @@ static LRESULT CALLBACK clipboard_wnd_proc(HWND hwnd, UINT msg, WPARAM wp, LPARA
EnterCriticalSection
(
&
clipboard_cs
);
LeaveCriticalSection
(
&
clipboard_cs
);
break
;
case
WM_CHANGECBCHAIN
:
if
(
next_wnd
==
(
HWND
)
wp
)
next_wnd
=
(
HWND
)
lp
;
else
if
(
next_wnd
)
SendMessageA
(
next_wnd
,
msg
,
wp
,
lp
);
break
;
case
WM_USER
:
ChangeClipboardChain
(
hwnd
,
next_wnd
);
PostQuitMessage
(
0
);
break
;
}
...
...
@@ -292,7 +300,7 @@ static DWORD WINAPI clipboard_thread(void *param)
EnterCriticalSection
(
&
clipboard_cs
);
SetLastError
(
0xdeadbeef
);
SetClipboardViewer
(
win
);
next_wnd
=
SetClipboardViewer
(
win
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"GetLastError = %d
\n
"
,
GetLastError
());
LeaveCriticalSection
(
&
clipboard_cs
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment