mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
server-Key_State: Fix test failure in comctl32/listview.
This commit is contained in:
parent
ce3f724ea2
commit
ad87c93337
@ -4324,9 +4324,11 @@ fi
|
||||
if test "$enable_server_Key_State" -eq 1; then
|
||||
patch_apply server-Key_State/0001-server-Introduce-a-helper-function-to-update-the-thr.patch
|
||||
patch_apply server-Key_State/0002-server-Implement-locking-and-synchronization-of-keys.patch
|
||||
patch_apply server-Key_State/0003-server-Lock-thread-specific-keystate-in-set_key_stat.patch
|
||||
(
|
||||
echo '+ { "Sebastian Lackner", "server: Introduce a helper function to update the thread_input key state.", 1 },';
|
||||
echo '+ { "Sebastian Lackner", "server: Implement locking and synchronization of keystate buffer.", 2 },';
|
||||
echo '+ { "Sebastian Lackner", "server: Lock thread specific keystate in set_key_state wineserver call.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
|
@ -0,0 +1,34 @@
|
||||
From 9b712bd80a30791f533cb1552660225ea7434955 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Mon, 1 Jun 2015 21:05:14 +0200
|
||||
Subject: server: Lock thread specific keystate in set_key_state wineserver
|
||||
call.
|
||||
|
||||
---
|
||||
server/queue.c | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/server/queue.c b/server/queue.c
|
||||
index f278861..74e6e24 100644
|
||||
--- a/server/queue.c
|
||||
+++ b/server/queue.c
|
||||
@@ -2940,7 +2940,15 @@ DECL_HANDLER(set_key_state)
|
||||
else
|
||||
{
|
||||
if (!(thread = get_thread_from_id( req->tid ))) return;
|
||||
- if (thread->queue) memcpy( thread->queue->input->keystate, get_req_data(), size );
|
||||
+ if (thread->queue)
|
||||
+ {
|
||||
+ memcpy( thread->queue->input->keystate, get_req_data(), size );
|
||||
+ if (!thread->queue->keystate_locked)
|
||||
+ {
|
||||
+ thread->queue->input->lock_count++;
|
||||
+ thread->queue->keystate_locked = 1;
|
||||
+ }
|
||||
+ }
|
||||
if (req->async && (desktop = get_thread_desktop( thread, 0 )))
|
||||
{
|
||||
memcpy( desktop->keystate, get_req_data(), size );
|
||||
--
|
||||
2.4.2
|
||||
|
Loading…
x
Reference in New Issue
Block a user