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
31142324
Commit
31142324
authored
Feb 24, 2007
by
Fabian Bieler
Committed by
Alexandre Julliard
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Do not call NULL message callback.
parent
106badf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
message.c
dlls/user32/message.c
+2
-0
msg.c
dlls/user32/tests/msg.c
+15
-0
No files found.
dlls/user32/message.c
View file @
31142324
...
...
@@ -1905,6 +1905,8 @@ static BOOL process_hardware_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info
static
inline
void
call_sendmsg_callback
(
SENDASYNCPROC
callback
,
HWND
hwnd
,
UINT
msg
,
ULONG_PTR
data
,
LRESULT
result
)
{
if
(
!
callback
)
return
;
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Call message callback %p (hwnd=%p,msg=%s,data=%08lx,result=%08lx)
\n
"
,
GetCurrentThreadId
(),
callback
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
...
...
dlls/user32/tests/msg.c
View file @
31142324
...
...
@@ -8889,6 +8889,20 @@ static void test_dialog_messages(void)
#undef check_selection
}
static
void
test_nullCallback
(
void
)
{
HWND
hwnd
;
MSG
msg
;
hwnd
=
CreateWindowExA
(
0
,
"TestWindowClass"
,
"Test overlapped"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
200
,
200
,
0
,
0
,
0
,
NULL
);
ok
(
hwnd
!=
0
,
"Failed to create overlapped window
\n
"
);
SendMessageCallbackA
(
hwnd
,
WM_NULL
,
0
,
0
,
NULL
,
0
);
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
msg
)
{
BOOL
ret
;
...
...
@@ -8959,6 +8973,7 @@ START_TEST(msg)
test_SetWindowRgn
();
test_sys_menu
();
test_dialog_messages
();
test_nullCallback
();
UnhookWindowsHookEx
(
hCBT_hook
);
if
(
pUnhookWinEvent
)
...
...
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