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
4e343b6f
Commit
4e343b6f
authored
Dec 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Avoid accessing the window structure directly in DispatchMessage16.
parent
73cf431a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
msg16.c
dlls/user32/msg16.c
+2
-12
No files found.
dlls/user32/msg16.c
View file @
4e343b6f
...
...
@@ -1797,7 +1797,6 @@ BOOL16 WINAPI TranslateMessage16( const MSG16 *msg )
*/
LONG
WINAPI
DispatchMessage16
(
const
MSG16
*
msg
)
{
WND
*
wndPtr
;
WNDPROC16
winproc
;
LONG
retval
;
HWND
hwnd
=
WIN_Handle32
(
msg
->
hwnd
);
...
...
@@ -1810,20 +1809,11 @@ LONG WINAPI DispatchMessage16( const MSG16* msg )
msg
->
message
,
msg
->
wParam
,
GetTickCount
()
);
}
if
(
!
(
w
ndPtr
=
WIN_GetPtr
(
hwnd
)))
if
(
!
(
w
inproc
=
(
WNDPROC16
)
GetWindowLong16
(
msg
->
hwnd
,
GWLP_WNDPROC
)))
{
if
(
msg
->
hwnd
)
SetLastError
(
ERROR_INVALID_WINDOW_HANDLE
);
SetLastError
(
ERROR_INVALID_WINDOW_HANDLE
);
return
0
;
}
if
(
wndPtr
==
WND_OTHER_PROCESS
||
wndPtr
==
WND_DESKTOP
)
{
if
(
IsWindow
(
hwnd
))
SetLastError
(
ERROR_MESSAGE_SYNC_ONLY
);
else
SetLastError
(
ERROR_INVALID_WINDOW_HANDLE
);
return
0
;
}
winproc
=
WINPROC_GetProc16
(
wndPtr
->
winproc
,
wndPtr
->
flags
&
WIN_ISUNICODE
);
WIN_ReleasePtr
(
wndPtr
);
SPY_EnterMessage
(
SPY_DISPATCHMESSAGE16
,
hwnd
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
);
retval
=
CallWindowProc16
(
winproc
,
msg
->
hwnd
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
);
SPY_ExitMessage
(
SPY_RESULT_OK16
,
hwnd
,
msg
->
message
,
retval
,
msg
->
wParam
,
msg
->
lParam
);
...
...
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