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
142708fa
Commit
142708fa
authored
Oct 29, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Move handling of internal messages into peek_message.
parent
71eb8e10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
24 deletions
+17
-24
message.c
dlls/user32/message.c
+17
-24
No files found.
dlls/user32/message.c
View file @
142708fa
...
...
@@ -2164,6 +2164,16 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags
thread_info
->
GetMessagePosVal
=
MAKELONG
(
info
.
msg
.
pt
.
x
,
info
.
msg
.
pt
.
y
);
/* fall through */
case
MSG_POSTED
:
if
(
info
.
msg
.
message
&
0x80000000
)
/* internal message */
{
if
(
flags
&
PM_REMOVE
)
handle_internal_message
(
info
.
msg
.
hwnd
,
info
.
msg
.
message
,
info
.
msg
.
wParam
,
info
.
msg
.
lParam
);
else
peek_message
(
msg
,
info
.
msg
.
hwnd
,
info
.
msg
.
message
,
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
)
{
...
...
@@ -2868,33 +2878,16 @@ BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT f
/* check for graphics events */
USER_Driver
->
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
QS_ALLINPUT
,
0
);
hwnd
=
WIN_GetFullHandle
(
hwnd
);
for
(;;)
if
(
!
peek_message
(
&
msg
,
hwnd
,
first
,
last
,
flags
))
{
if
(
!
peek_message
(
&
msg
,
hwnd
,
first
,
last
,
flags
))
if
(
!
(
flags
&
PM_NOYIELD
))
{
if
(
!
(
flags
&
PM_NOYIELD
))
{
DWORD
count
;
ReleaseThunkLock
(
&
count
);
NtYieldExecution
();
if
(
count
)
RestoreThunkLock
(
count
);
}
return
FALSE
;
DWORD
count
;
ReleaseThunkLock
(
&
count
);
NtYieldExecution
();
if
(
count
)
RestoreThunkLock
(
count
);
}
if
(
msg
.
message
&
0x80000000
)
{
if
(
!
(
flags
&
PM_REMOVE
))
{
/* Have to remove the message explicitly.
Do this before handling it, because the message handler may
call PeekMessage again */
peek_message
(
&
msg
,
msg
.
hwnd
,
msg
.
message
,
msg
.
message
,
flags
|
PM_REMOVE
);
}
handle_internal_message
(
msg
.
hwnd
,
msg
.
message
,
msg
.
wParam
,
msg
.
lParam
);
}
else
break
;
return
FALSE
;
}
thread_info
->
GetMessageTimeVal
=
msg
.
time
;
...
...
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