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
fc2bd232
Commit
fc2bd232
authored
Apr 20, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle posted internal messages directly in PeekMessageW to avoid
having to return them to the application. Call NtYieldExecution for nicer behavior when PM_NOYIELD is not specified.
parent
d1a36e19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
message.c
dlls/user/message.c
+17
-12
No files found.
dlls/user/message.c
View file @
fc2bd232
...
...
@@ -2672,15 +2672,26 @@ BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT f
hwnd
=
WIN_GetFullHandle
(
hwnd
);
if
(
!
peek_message
(
&
msg
,
hwnd
,
first
,
last
,
(
flags
&
PM_REMOVE
)
?
GET_MSG_REMOVE
:
0
)
)
for
(;;
)
{
if
(
!
(
flags
&
PM_NOYIELD
))
if
(
!
peek_message
(
&
msg
,
hwnd
,
first
,
last
,
(
flags
&
PM_REMOVE
)
?
GET_MSG_REMOVE
:
0
))
{
DWORD
count
;
ReleaseThunkLock
(
&
count
);
if
(
count
)
RestoreThunkLock
(
count
);
if
(
!
(
flags
&
PM_NOYIELD
))
{
DWORD
count
;
ReleaseThunkLock
(
&
count
);
NtYieldExecution
();
if
(
count
)
RestoreThunkLock
(
count
);
}
return
FALSE
;
}
return
FALSE
;
if
(
msg
.
message
&
0x80000000
)
{
handle_internal_message
(
msg
.
hwnd
,
msg
.
message
,
msg
.
wParam
,
msg
.
lParam
);
if
(
!
(
flags
&
PM_REMOVE
))
/* have to remove it explicitly */
peek_message
(
&
msg
,
msg
.
hwnd
,
msg
.
message
,
msg
.
message
,
GET_MSG_REMOVE
);
}
else
break
;
}
if
((
queue
=
QUEUE_Current
()))
...
...
@@ -2863,9 +2874,6 @@ LONG WINAPI DispatchMessageA( const MSG* msg )
msg
->
message
,
msg
->
wParam
,
GetTickCount
()
);
}
if
(
msg
->
message
&
0x80000000
)
return
handle_internal_message
(
msg
->
hwnd
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
);
if
(
!
(
wndPtr
=
WIN_GetPtr
(
msg
->
hwnd
)))
{
if
(
msg
->
hwnd
)
SetLastError
(
ERROR_INVALID_WINDOW_HANDLE
);
...
...
@@ -2938,9 +2946,6 @@ LONG WINAPI DispatchMessageW( const MSG* msg )
msg
->
message
,
msg
->
wParam
,
GetTickCount
()
);
}
if
(
msg
->
message
&
0x80000000
)
return
handle_internal_message
(
msg
->
hwnd
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
);
if
(
!
(
wndPtr
=
WIN_GetPtr
(
msg
->
hwnd
)))
{
if
(
msg
->
hwnd
)
SetLastError
(
ERROR_INVALID_WINDOW_HANDLE
);
...
...
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