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
bdf3f413
Commit
bdf3f413
authored
Jun 03, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Allow opening the clipboard again with the same owner.
parent
e99c3f0c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
clipboard.c
dlls/user32/tests/clipboard.c
+2
-1
clipboard.c
server/clipboard.c
+1
-1
No files found.
dlls/user32/tests/clipboard.c
View file @
bdf3f413
...
...
@@ -51,11 +51,12 @@ static void test_ClipboardOwner(void)
ok
(
OpenClipboard
(
0
),
"OpenClipboard failed
\n
"
);
ok
(
!
GetClipboardOwner
(),
"clipboard should still be not owned
\n
"
);
ok
(
!
OpenClipboard
(
hWnd1
),
"OpenClipboard should fail since clipboard already opened
\n
"
);
ok
(
OpenClipboard
(
0
),
"OpenClipboard again failed
\n
"
);
ret
=
CloseClipboard
();
ok
(
ret
,
"CloseClipboard error %d
\n
"
,
GetLastError
());
ok
(
OpenClipboard
(
hWnd1
),
"OpenClipboard failed
\n
"
);
todo_wine
ok
(
OpenClipboard
(
hWnd1
),
"OpenClipboard second time in the same hwnd failed
\n
"
);
ok
(
OpenClipboard
(
hWnd1
),
"OpenClipboard second time in the same hwnd failed
\n
"
);
SetLastError
(
0xdeadbeef
);
ret
=
OpenClipboard
(
hWnd2
);
...
...
server/clipboard.c
View file @
bdf3f413
...
...
@@ -138,7 +138,7 @@ void cleanup_clipboard_thread(struct thread *thread)
static
int
open_clipboard
(
struct
clipboard
*
clipboard
,
user_handle_t
win
)
{
win
=
get_user_full_handle
(
win
);
if
(
clipboard
->
open_thread
&&
clipboard
->
open_thread
!=
current
)
if
(
clipboard
->
open_thread
&&
(
clipboard
->
open_thread
!=
current
||
clipboard
->
open_win
!=
win
)
)
{
set_error
(
STATUS_WAS_LOCKED
);
return
0
;
...
...
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