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
7888382e
Commit
7888382e
authored
Aug 25, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Notify the clipboard viewer on close even if we are not the owner.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
57e2b75c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
clipboard.c
dlls/user32/clipboard.c
+3
-3
clipboard.c
dlls/user32/tests/clipboard.c
+2
-2
No files found.
dlls/user32/clipboard.c
View file @
7888382e
...
...
@@ -181,12 +181,12 @@ BOOL WINAPI CloseClipboard(void)
if
(
!
ret
)
return
FALSE
;
if
(
bCBHasChanged
&&
owner
)
if
(
bCBHasChanged
)
{
USER_Driver
->
pEndClipboardUpdate
();
if
(
owner
)
USER_Driver
->
pEndClipboardUpdate
();
bCBHasChanged
=
FALSE
;
if
(
viewer
)
SendNotifyMessageW
(
viewer
,
WM_DRAWCLIPBOARD
,
(
WPARAM
)
GetClipboardOwner
(),
0
);
}
bCBHasChanged
=
FALSE
;
return
TRUE
;
}
...
...
dlls/user32/tests/clipboard.c
View file @
7888382e
...
...
@@ -838,7 +838,7 @@ static DWORD WINAPI clipboard_thread(void *param)
old_seq
=
seq
;
}
count
=
SendMessageA
(
win
,
WM_USER
+
1
,
0
,
0
);
todo_wine
ok
(
count
,
"WM_DRAWCLIPBOARD not received
\n
"
);
ok
(
count
,
"WM_DRAWCLIPBOARD not received
\n
"
);
count
=
SendMessageA
(
win
,
WM_USER
+
2
,
0
,
0
);
todo_wine
ok
(
count
||
broken
(
!
pAddClipboardFormatListener
),
"WM_CLIPBOARDUPDATE not received
\n
"
);
...
...
@@ -881,7 +881,7 @@ static DWORD WINAPI clipboard_thread(void *param)
old_seq
=
seq
;
}
count
=
SendMessageA
(
win
,
WM_USER
+
1
,
0
,
0
);
todo_wine
ok
(
count
,
"WM_DRAWCLIPBOARD not received
\n
"
);
ok
(
count
,
"WM_DRAWCLIPBOARD not received
\n
"
);
count
=
SendMessageA
(
win
,
WM_USER
+
2
,
0
,
0
);
todo_wine
ok
(
count
||
broken
(
!
pAddClipboardFormatListener
),
"WM_CLIPBOARDUPDATE not received
\n
"
);
...
...
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