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
140f9e82
Commit
140f9e82
authored
Jul 19, 2023
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Use user message packing for WM_DEVICECHANGE.
parent
c1a5b42c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
winproc.c
dlls/user32/winproc.c
+0
-3
message.c
dlls/win32u/message.c
+11
-0
No files found.
dlls/user32/winproc.c
View file @
140f9e82
...
@@ -851,10 +851,7 @@ BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lparam,
...
@@ -851,10 +851,7 @@ BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lparam,
case
WM_MOVING
:
case
WM_MOVING
:
case
CB_GETCOMBOBOXINFO
:
case
CB_GETCOMBOBOXINFO
:
case
WM_MDIGETACTIVE
:
case
WM_MDIGETACTIVE
:
break
;
case
WM_DEVICECHANGE
:
case
WM_DEVICECHANGE
:
if
(
!
(
*
wparam
&
0x8000
))
return
TRUE
;
minsize
=
sizeof
(
DEV_BROADCAST_HDR
);
break
;
break
;
case
WM_NOTIFY
:
case
WM_NOTIFY
:
/* WM_NOTIFY cannot be sent across processes (MSDN) */
/* WM_NOTIFY cannot be sent across processes (MSDN) */
...
...
dlls/win32u/message.c
View file @
140f9e82
...
@@ -876,6 +876,10 @@ static BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lpa
...
@@ -876,6 +876,10 @@ static BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lpa
if
(
!*
lparam
)
return
TRUE
;
if
(
!*
lparam
)
return
TRUE
;
if
(
!
get_buffer_space
(
buffer
,
sizeof
(
BOOL
),
size
))
return
FALSE
;
if
(
!
get_buffer_space
(
buffer
,
sizeof
(
BOOL
),
size
))
return
FALSE
;
break
;
break
;
case
WM_DEVICECHANGE
:
if
(
!
(
*
wparam
&
0x8000
))
return
TRUE
;
minsize
=
sizeof
(
DEV_BROADCAST_HDR
);
break
;
default:
default:
return
TRUE
;
/* message doesn't need any unpacking */
return
TRUE
;
/* message doesn't need any unpacking */
}
}
...
@@ -1704,6 +1708,13 @@ size_t user_message_size( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam,
...
@@ -1704,6 +1708,13 @@ size_t user_message_size( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam,
case
WM_MDIGETACTIVE
:
case
WM_MDIGETACTIVE
:
if
(
lparam
)
size
=
sizeof
(
BOOL
);
if
(
lparam
)
size
=
sizeof
(
BOOL
);
break
;
break
;
case
WM_DEVICECHANGE
:
if
((
wparam
&
0x8000
)
&&
lparam
)
{
const
DEV_BROADCAST_HDR
*
header
=
lparam_ptr
;
size
=
header
->
dbch_size
;
}
break
;
}
}
return
size
;
return
size
;
...
...
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