Alexandre Julliard : server: Store the clipboard windows as full handles.
Module: wine Branch: master Commit: e99c3f0c4b07e5413fc1cc52676895c9fff1b71b URL: http://source.winehq.org/git/wine.git/?a=commit;h=e99c3f0c4b07e5413fc1cc5267... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jun 3 18:38:23 2015 +0900 server: Store the clipboard windows as full handles. --- server/clipboard.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/clipboard.c b/server/clipboard.c index 7e92121..f144ea1 100644 --- a/server/clipboard.c +++ b/server/clipboard.c @@ -137,6 +137,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) { set_error(STATUS_WAS_LOCKED); @@ -166,7 +167,7 @@ static int set_clipboard_owner( struct clipboard *clipboard, user_handle_t win ) set_error(STATUS_WAS_LOCKED); return 0; } - clipboard->owner_win = win; + clipboard->owner_win = get_user_full_handle( win ); clipboard->owner_thread = current; return 1; } @@ -223,7 +224,7 @@ DECL_HANDLER(set_clipboard_info) if (!release_clipboard_owner( clipboard )) return; } - if (req->flags & SET_CB_VIEWER) clipboard->viewer = req->viewer; + if (req->flags & SET_CB_VIEWER) clipboard->viewer = get_user_full_handle( req->viewer ); if (req->flags & SET_CB_SEQNO) clipboard->seqno++;
participants (1)
-
Alexandre Julliard