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
a0f9da11
Commit
a0f9da11
authored
Dec 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Remove some redundant 16-bit message traces.
parent
b201a41e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
63 deletions
+18
-63
msg16.c
dlls/user32/msg16.c
+5
-23
spy.c
dlls/user32/spy.c
+11
-34
user_private.h
dlls/user32/user_private.h
+2
-6
No files found.
dlls/user32/msg16.c
View file @
a0f9da11
...
...
@@ -614,9 +614,6 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1
LRESULT
ret
=
0
;
HWND
hwnd32
=
WIN_Handle32
(
hwnd
);
TRACE_
(
msg
)(
"(hwnd=%p,msg=%s,wp=%08x,lp=%08lx)
\n
"
,
hwnd32
,
SPY_GetMsgName
(
msg
,
hwnd32
),
wParam
,
lParam
);
switch
(
msg
)
{
case
WM_NCCREATE
:
...
...
@@ -938,9 +935,6 @@ LRESULT WINPROC_CallProc32ATo16( winproc_callback16_t callback, HWND hwnd, UINT
{
LRESULT
ret
=
0
;
TRACE_
(
msg
)(
"(hwnd=%p,msg=%s,wp=%08lx,lp=%08lx)
\n
"
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wParam
,
lParam
);
switch
(
msg
)
{
case
WM_NCCREATE
:
...
...
@@ -1625,8 +1619,6 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd16, UINT16 msg, WPARAM16 wParam, LPAR
LRESULT
result
;
HWND
hwnd
=
WIN_Handle32
(
hwnd16
);
SPY_EnterMessage
(
SPY_DEFWNDPROC16
,
hwnd
,
msg
,
wParam
,
lParam
);
switch
(
msg
)
{
case
WM_NCCREATE
:
...
...
@@ -1646,10 +1638,8 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd16, UINT16 msg, WPARAM16 wParam, LPAR
cs32
.
dwExStyle
=
cs16
->
dwExStyle
;
cs32
.
lpszName
=
MapSL
(
cs16
->
lpszName
);
cs32
.
lpszClass
=
MapSL
(
cs16
->
lpszClass
);
re
sult
=
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
(
LPARAM
)
&
cs32
);
re
turn
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
(
LPARAM
)
&
cs32
);
}
break
;
case
WM_NCCALCSIZE
:
{
RECT16
*
rect16
=
MapSL
(
lParam
);
...
...
@@ -1666,9 +1656,8 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd16, UINT16 msg, WPARAM16 wParam, LPAR
rect16
->
top
=
rect32
.
top
;
rect16
->
right
=
rect32
.
right
;
rect16
->
bottom
=
rect32
.
bottom
;
return
result
;
}
break
;
case
WM_WINDOWPOSCHANGING
:
case
WM_WINDOWPOSCHANGED
:
{
...
...
@@ -1692,21 +1681,14 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd16, UINT16 msg, WPARAM16 wParam, LPAR
pos16
->
cx
=
pos32
.
cx
;
pos16
->
cy
=
pos32
.
cy
;
pos16
->
flags
=
pos32
.
flags
;
return
result
;
}
break
;
case
WM_GETTEXT
:
case
WM_SETTEXT
:
result
=
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
(
LPARAM
)
MapSL
(
lParam
)
);
break
;
return
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
(
LPARAM
)
MapSL
(
lParam
)
);
default:
result
=
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
break
;
return
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
}
SPY_ExitMessage
(
SPY_RESULT_DEFWND16
,
hwnd
,
msg
,
result
,
wParam
,
lParam
);
return
result
;
}
...
...
dlls/user32/spy.c
View file @
a0f9da11
...
...
@@ -2575,13 +2575,13 @@ void SPY_EnterMessage( INT iFlag, HWND hWnd, UINT msg,
switch
(
iFlag
)
{
case
SPY_DISPATCHMESSAGE16
:
TRACE
(
"%*s(%04x) %-16s
message
[%04x] %s dispatched wp=%04lx lp=%08lx
\n
"
,
TRACE
(
"%*s(%04x) %-16s [%04x] %s dispatched wp=%04lx lp=%08lx
\n
"
,
indent
,
""
,
HWND_16
(
hWnd
),
debugstr_w
(
sp_e
.
wnd_name
),
msg
,
sp_e
.
msg_name
,
wParam
,
lParam
);
break
;
case
SPY_DISPATCHMESSAGE
:
TRACE
(
"%*s(%p) %-16s
message
[%04x] %s dispatched wp=%08lx lp=%08lx
\n
"
,
TRACE
(
"%*s(%p) %-16s [%04x] %s dispatched wp=%08lx lp=%08lx
\n
"
,
indent
,
""
,
hWnd
,
debugstr_w
(
sp_e
.
wnd_name
),
msg
,
sp_e
.
msg_name
,
wParam
,
lParam
);
break
;
...
...
@@ -2596,11 +2596,11 @@ void SPY_EnterMessage( INT iFlag, HWND hWnd, UINT msg,
else
sprintf
(
taskName
,
"tid %04x"
,
GetCurrentThreadId
()
);
if
(
iFlag
==
SPY_SENDMESSAGE16
)
TRACE
(
"%*s(%04x) %-16s
message
[%04x] %s sent from %s wp=%04lx lp=%08lx
\n
"
,
TRACE
(
"%*s(%04x) %-16s [%04x] %s sent from %s wp=%04lx lp=%08lx
\n
"
,
indent
,
""
,
HWND_16
(
hWnd
),
debugstr_w
(
sp_e
.
wnd_name
),
msg
,
sp_e
.
msg_name
,
taskName
,
wParam
,
lParam
);
else
{
TRACE
(
"%*s(%p) %-16s
message
[%04x] %s sent from %s wp=%08lx lp=%08lx
\n
"
,
{
TRACE
(
"%*s(%p) %-16s [%04x] %s sent from %s wp=%08lx lp=%08lx
\n
"
,
indent
,
""
,
hWnd
,
debugstr_w
(
sp_e
.
wnd_name
),
msg
,
sp_e
.
msg_name
,
taskName
,
wParam
,
lParam
);
SPY_DumpStructure
(
&
sp_e
,
TRUE
);
...
...
@@ -2608,17 +2608,10 @@ void SPY_EnterMessage( INT iFlag, HWND hWnd, UINT msg,
}
break
;
case
SPY_DEFWNDPROC16
:
if
(
SPY_ExcludeDWP
)
return
;
TRACE
(
"%*s(%04x) DefWindowProc16: %s [%04x] wp=%04lx lp=%08lx
\n
"
,
indent
,
""
,
HWND_16
(
hWnd
),
sp_e
.
msg_name
,
msg
,
wParam
,
lParam
);
break
;
case
SPY_DEFWNDPROC
:
if
(
SPY_ExcludeDWP
)
return
;
TRACE
(
"%*s(%p) DefWindowProc32: %s [%04x] wp=%08lx lp=%08lx
\n
"
,
indent
,
""
,
hWnd
,
sp_e
.
msg_name
,
msg
,
wParam
,
lParam
);
TRACE
(
"%*s(%p) DefWindowProc:[%04x] %s wp=%08lx lp=%08lx
\n
"
,
indent
,
""
,
hWnd
,
msg
,
sp_e
.
msg_name
,
wParam
,
lParam
);
break
;
}
set_indent_level
(
indent
+
SPY_INDENT_UNIT
);
...
...
@@ -2637,7 +2630,7 @@ void SPY_ExitMessage( INT iFlag, HWND hWnd, UINT msg, LRESULT lReturn,
DWORD
save_error
=
GetLastError
();
if
(
!
TRACE_ON
(
message
)
||
SPY_EXCLUDE
(
msg
)
||
(
SPY_ExcludeDWP
&&
(
iFlag
==
SPY_RESULT_DEFWND16
||
iFlag
==
SPY_RESULT_DEFWND
))
)
(
SPY_ExcludeDWP
&&
iFlag
==
SPY_RESULT_DEFWND
)
)
return
;
sp_e
.
msgnum
=
msg
;
...
...
@@ -2655,39 +2648,23 @@ void SPY_ExitMessage( INT iFlag, HWND hWnd, UINT msg, LRESULT lReturn,
switch
(
iFlag
)
{
case
SPY_RESULT_DEFWND16
:
TRACE
(
" %*s(%04x) DefWindowProc16: %s [%04x] returned %08lx
\n
"
,
indent
,
""
,
HWND_16
(
hWnd
),
sp_e
.
msg_name
,
msg
,
lReturn
);
break
;
case
SPY_RESULT_DEFWND
:
TRACE
(
" %*s(%p) DefWindowProc
32: %s [%04x]
returned %08lx
\n
"
,
indent
,
""
,
hWnd
,
sp_e
.
msg_name
,
msg
,
lReturn
);
TRACE
(
" %*s(%p) DefWindowProc
: [%04x] %s
returned %08lx
\n
"
,
indent
,
""
,
hWnd
,
msg
,
sp_e
.
msg_name
,
lReturn
);
break
;
case
SPY_RESULT_OK16
:
TRACE
(
" %*s(%04x) %-16s
message
[%04x] %s returned %08lx
\n
"
,
TRACE
(
" %*s(%04x) %-16s [%04x] %s returned %08lx
\n
"
,
indent
,
""
,
HWND_16
(
hWnd
),
debugstr_w
(
sp_e
.
wnd_name
),
msg
,
sp_e
.
msg_name
,
lReturn
);
break
;
case
SPY_RESULT_OK
:
TRACE
(
" %*s(%p) %-16s
message
[%04x] %s returned %08lx
\n
"
,
TRACE
(
" %*s(%p) %-16s [%04x] %s returned %08lx
\n
"
,
indent
,
""
,
hWnd
,
debugstr_w
(
sp_e
.
wnd_name
),
msg
,
sp_e
.
msg_name
,
lReturn
);
SPY_DumpStructure
(
&
sp_e
,
FALSE
);
break
;
case
SPY_RESULT_INVALIDHWND16
:
WARN
(
" %*s(%04x) %-16s message [%04x] %s HAS INVALID HWND
\n
"
,
indent
,
""
,
HWND_16
(
hWnd
),
debugstr_w
(
sp_e
.
wnd_name
),
msg
,
sp_e
.
msg_name
);
break
;
case
SPY_RESULT_INVALIDHWND
:
WARN
(
" %*s(%p) %-16s message [%04x] %s HAS INVALID HWND
\n
"
,
indent
,
""
,
hWnd
,
debugstr_w
(
sp_e
.
wnd_name
),
msg
,
sp_e
.
msg_name
);
break
;
}
SetLastError
(
save_error
);
}
...
...
dlls/user32/user_private.h
View file @
a0f9da11
...
...
@@ -259,15 +259,11 @@ extern BOOL WINPROC_call_window( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
#define SPY_DISPATCHMESSAGE 0x0101
#define SPY_SENDMESSAGE16 0x0102
#define SPY_SENDMESSAGE 0x0103
#define SPY_DEFWNDPROC16 0x0104
#define SPY_DEFWNDPROC 0x0105
#define SPY_DEFWNDPROC 0x0104
#define SPY_RESULT_OK16 0x0000
#define SPY_RESULT_OK 0x0001
#define SPY_RESULT_INVALIDHWND16 0x0002
#define SPY_RESULT_INVALIDHWND 0x0003
#define SPY_RESULT_DEFWND16 0x0004
#define SPY_RESULT_DEFWND 0x0005
#define SPY_RESULT_DEFWND 0x0002
extern
const
char
*
SPY_GetClassLongOffsetName
(
INT
offset
)
DECLSPEC_HIDDEN
;
extern
const
char
*
SPY_GetMsgName
(
UINT
msg
,
HWND
hWnd
)
DECLSPEC_HIDDEN
;
...
...
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