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
641cc640
Commit
641cc640
authored
Oct 29, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Move thread info setting and WH_GETMESSAGE call into peek_message.
parent
142708fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
message.c
dlls/user32/message.c
+5
-8
No files found.
dlls/user32/message.c
View file @
641cc640
...
...
@@ -2174,7 +2174,6 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags
info
.
msg
.
message
,
flags
|
PM_REMOVE
);
goto
next
;
}
thread_info
->
GetMessageExtraInfoVal
=
extra_info
;
if
(
info
.
msg
.
message
>=
WM_DDE_FIRST
&&
info
.
msg
.
message
<=
WM_DDE_LAST
)
{
if
(
!
unpack_dde_message
(
info
.
msg
.
hwnd
,
info
.
msg
.
message
,
&
info
.
msg
.
wParam
,
...
...
@@ -2182,7 +2181,12 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags
goto
next
;
/* ignore it */
}
*
msg
=
info
.
msg
;
msg
->
pt
.
x
=
(
short
)
LOWORD
(
thread_info
->
GetMessagePosVal
);
msg
->
pt
.
y
=
(
short
)
HIWORD
(
thread_info
->
GetMessagePosVal
);
thread_info
->
GetMessageTimeVal
=
info
.
msg
.
time
;
thread_info
->
GetMessageExtraInfoVal
=
extra_info
;
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
HOOK_CallHooks
(
WH_GETMESSAGE
,
HC_ACTION
,
flags
&
PM_REMOVE
,
(
LPARAM
)
msg
,
TRUE
);
return
TRUE
;
}
...
...
@@ -2870,7 +2874,6 @@ void WINAPI PostQuitMessage( INT exit_code )
*/
BOOL
WINAPI
PeekMessageW
(
MSG
*
msg_out
,
HWND
hwnd
,
UINT
first
,
UINT
last
,
UINT
flags
)
{
struct
user_thread_info
*
thread_info
=
get_user_thread_info
();
MSG
msg
;
USER_CheckNotLock
();
...
...
@@ -2890,12 +2893,6 @@ BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT f
return
FALSE
;
}
thread_info
->
GetMessageTimeVal
=
msg
.
time
;
msg
.
pt
.
x
=
(
short
)
LOWORD
(
thread_info
->
GetMessagePosVal
);
msg
.
pt
.
y
=
(
short
)
HIWORD
(
thread_info
->
GetMessagePosVal
);
HOOK_CallHooks
(
WH_GETMESSAGE
,
HC_ACTION
,
flags
&
PM_REMOVE
,
(
LPARAM
)
&
msg
,
TRUE
);
/* copy back our internal safe copy of message data to msg_out.
* msg_out is a variable from the *program*, so it can't be used
* internally as it can get "corrupted" by our use of SendMessage()
...
...
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