Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8e68b547
Commit
8e68b547
authored
Oct 05, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent DispatchMessage from dispatching a message to a different
thread (reported by Dmitry Timoshkov).
parent
2f4b33c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
message.c
windows/message.c
+16
-6
No files found.
windows/message.c
View file @
8e68b547
...
...
@@ -777,9 +777,14 @@ LONG WINAPI DispatchMessageA( const MSG* msg )
}
if
(
wndPtr
==
WND_OTHER_PROCESS
)
{
if
(
IsWindow
(
msg
->
hwnd
))
ERR
(
"cannot dispatch msg to other process window %p
\n
"
,
msg
->
hwnd
);
SetLastError
(
ERROR_INVALID_WINDOW_HANDLE
);
if
(
IsWindow
(
msg
->
hwnd
))
SetLastError
(
ERROR_MESSAGE_SYNC_ONLY
);
else
SetLastError
(
ERROR_INVALID_WINDOW_HANDLE
);
return
0
;
}
if
(
wndPtr
->
tid
!=
GetCurrentThreadId
())
{
SetLastError
(
ERROR_MESSAGE_SYNC_ONLY
);
WIN_ReleasePtr
(
wndPtr
);
return
0
;
}
if
(
!
(
winproc
=
wndPtr
->
winproc
))
...
...
@@ -869,9 +874,14 @@ LONG WINAPI DispatchMessageW( const MSG* msg )
}
if
(
wndPtr
==
WND_OTHER_PROCESS
)
{
if
(
IsWindow
(
msg
->
hwnd
))
ERR
(
"cannot dispatch msg to other process window %p
\n
"
,
msg
->
hwnd
);
SetLastError
(
ERROR_INVALID_WINDOW_HANDLE
);
if
(
IsWindow
(
msg
->
hwnd
))
SetLastError
(
ERROR_MESSAGE_SYNC_ONLY
);
else
SetLastError
(
ERROR_INVALID_WINDOW_HANDLE
);
return
0
;
}
if
(
wndPtr
->
tid
!=
GetCurrentThreadId
())
{
SetLastError
(
ERROR_MESSAGE_SYNC_ONLY
);
WIN_ReleasePtr
(
wndPtr
);
return
0
;
}
if
(
!
(
winproc
=
wndPtr
->
winproc
))
...
...
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