From e99c3f0c4b07e5413fc1cc52676895c9fff1b71b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 3 Jun 2015 18:38:23 +0900 Subject: [PATCH] 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 7e92121c148..f144ea10ac7 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++; -- 2.11.4.GIT