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
fa873804
Commit
fa873804
authored
Dec 20, 2023
by
Brendan McGrath
Committed by
Alexandre Julliard
Dec 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Always release internal hardware messages.
parent
5b0430a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
queue.c
server/queue.c
+7
-1
No files found.
server/queue.c
View file @
fa873804
...
@@ -2193,6 +2193,11 @@ static int check_hw_message_filter( user_handle_t win, unsigned int msg_code,
...
@@ -2193,6 +2193,11 @@ static int check_hw_message_filter( user_handle_t win, unsigned int msg_code,
}
}
}
}
/* is this message an internal driver notification message */
static
inline
BOOL
is_internal_hardware_message
(
unsigned
int
message
)
{
return
(
message
>=
WM_WINE_FIRST_DRIVER_MSG
&&
message
<=
WM_WINE_LAST_DRIVER_MSG
);
}
/* find a hardware message for the given queue */
/* find a hardware message for the given queue */
static
int
get_hardware_message
(
struct
thread
*
thread
,
unsigned
int
hw_id
,
user_handle_t
filter_win
,
static
int
get_hardware_message
(
struct
thread
*
thread
,
unsigned
int
hw_id
,
user_handle_t
filter_win
,
...
@@ -2287,7 +2292,8 @@ static int get_hardware_message( struct thread *thread, unsigned int hw_id, user
...
@@ -2287,7 +2292,8 @@ static int get_hardware_message( struct thread *thread, unsigned int hw_id, user
data
->
hw_id
=
msg
->
unique_id
;
data
->
hw_id
=
msg
->
unique_id
;
set_reply_data
(
msg
->
data
,
msg
->
data_size
);
set_reply_data
(
msg
->
data
,
msg
->
data_size
);
if
(
get_hardware_msg_bit
(
msg
->
msg
)
==
QS_RAWINPUT
&&
(
flags
&
PM_REMOVE
))
if
((
get_hardware_msg_bit
(
msg
->
msg
)
==
QS_RAWINPUT
&&
(
flags
&
PM_REMOVE
))
||
is_internal_hardware_message
(
msg
->
msg
))
release_hardware_message
(
current
->
queue
,
data
->
hw_id
);
release_hardware_message
(
current
->
queue
,
data
->
hw_id
);
return
1
;
return
1
;
}
}
...
...
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