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
01676c5d
Commit
01676c5d
authored
Nov 25, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use the magic format string prefix for relay traces.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5f0a6691
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
45 deletions
+31
-45
edit.c
dlls/user32/edit.c
+4
-2
hook.c
dlls/user32/hook.c
+9
-13
message.c
dlls/user32/message.c
+10
-18
winproc.c
dlls/user32/winproc.c
+8
-12
No files found.
dlls/user32/edit.c
View file @
01676c5d
...
...
@@ -342,9 +342,10 @@ static INT EDIT_CallWordBreakProc(EDITSTATE *es, INT start, INT index, INT count
{
EDITWORDBREAKPROCW
wbpW
=
(
EDITWORDBREAKPROCW
)
es
->
word_break_proc
;
TRACE_
(
relay
)(
"
(UNICODE wordbrk=%p,
str=%s,idx=%d,cnt=%d,act=%d)
\n
"
,
TRACE_
(
relay
)(
"
\1
Call wordbreakW %p (
str=%s,idx=%d,cnt=%d,act=%d)
\n
"
,
es
->
word_break_proc
,
debugstr_wn
(
es
->
text
+
start
,
count
),
index
,
count
,
action
);
ret
=
wbpW
(
es
->
text
+
start
,
index
,
count
,
action
);
TRACE_
(
relay
)(
"
\1
Ret wordbreakW %p retval=%d
\n
"
,
es
->
word_break_proc
,
ret
);
}
else
{
...
...
@@ -355,10 +356,11 @@ static INT EDIT_CallWordBreakProc(EDITSTATE *es, INT start, INT index, INT count
countA
=
WideCharToMultiByte
(
CP_ACP
,
0
,
es
->
text
+
start
,
count
,
NULL
,
0
,
NULL
,
NULL
);
textA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
countA
);
WideCharToMultiByte
(
CP_ACP
,
0
,
es
->
text
+
start
,
count
,
textA
,
countA
,
NULL
,
NULL
);
TRACE_
(
relay
)(
"
(ANSI wordbrk=%p,
str=%s,idx=%d,cnt=%d,act=%d)
\n
"
,
TRACE_
(
relay
)(
"
\1
Call wordbreakA %p(
str=%s,idx=%d,cnt=%d,act=%d)
\n
"
,
es
->
word_break_proc
,
debugstr_an
(
textA
,
countA
),
index
,
countA
,
action
);
ret
=
wbpA
(
textA
,
index
,
countA
,
action
);
HeapFree
(
GetProcessHeap
(),
0
,
textA
);
TRACE_
(
relay
)(
"
\1
Ret wordbreakA %p retval=%d
\n
"
,
es
->
word_break_proc
,
ret
);
}
}
else
...
...
dlls/user32/hook.c
View file @
01676c5d
...
...
@@ -338,17 +338,15 @@ static LRESULT call_hook_proc( HOOKPROC proc, INT id, INT code, WPARAM wparam, L
{
LRESULT
ret
;
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Call hook proc %p (id=%s,code=%x,wp=%08lx,lp=%08lx)
\n
"
,
GetCurrentThreadId
(),
proc
,
hook_names
[
id
-
WH_MINHOOK
],
code
,
wparam
,
lparam
);
TRACE_
(
relay
)(
"
\1
Call hook proc %p (id=%s,code=%x,wp=%08lx,lp=%08lx)
\n
"
,
proc
,
hook_names
[
id
-
WH_MINHOOK
],
code
,
wparam
,
lparam
);
if
(
!
prev_unicode
==
!
next_unicode
)
ret
=
proc
(
code
,
wparam
,
lparam
);
else
if
(
prev_unicode
)
ret
=
call_hook_WtoA
(
proc
,
id
,
code
,
wparam
,
lparam
);
else
ret
=
call_hook_AtoW
(
proc
,
id
,
code
,
wparam
,
lparam
);
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Ret hook proc %p (id=%s,code=%x,wp=%08lx,lp=%08lx) retval=%08lx
\n
"
,
GetCurrentThreadId
(),
proc
,
hook_names
[
id
-
WH_MINHOOK
],
code
,
wparam
,
lparam
,
ret
);
TRACE_
(
relay
)(
"
\1
Ret hook proc %p (id=%s,code=%x,wp=%08lx,lp=%08lx) retval=%08lx
\n
"
,
proc
,
hook_names
[
id
-
WH_MINHOOK
],
code
,
wparam
,
lparam
,
ret
);
return
ret
;
}
...
...
@@ -921,17 +919,15 @@ void WINAPI NotifyWinEvent(DWORD event, HWND hwnd, LONG object_id, LONG child_id
if
(
!
info
.
module
[
0
]
||
(
proc
=
get_hook_proc
(
proc
,
info
.
module
,
&
free_module
))
!=
NULL
)
{
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Call winevent hook proc %p (hhook=%p,event=%x,hwnd=%p,object_id=%x,child_id=%x,tid=%04x,time=%x)
\n
"
,
GetCurrentThreadId
(),
proc
,
info
.
handle
,
event
,
hwnd
,
object_id
,
child_id
,
GetCurrentThreadId
(),
GetCurrentTime
());
TRACE_
(
relay
)(
"
\1
Call winevent hook proc %p (hhook=%p,event=%x,hwnd=%p,object_id=%x,child_id=%x,tid=%04x,time=%x)
\n
"
,
proc
,
info
.
handle
,
event
,
hwnd
,
object_id
,
child_id
,
GetCurrentThreadId
(),
GetCurrentTime
());
proc
(
info
.
handle
,
event
,
hwnd
,
object_id
,
child_id
,
GetCurrentThreadId
(),
GetCurrentTime
());
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Ret winevent hook proc %p (hhook=%p,event=%x,hwnd=%p,object_id=%x,child_id=%x,tid=%04x,time=%x)
\n
"
,
GetCurrentThreadId
(),
proc
,
info
.
handle
,
event
,
hwnd
,
object_id
,
TRACE_
(
relay
)(
"
\1
Ret winevent hook proc %p (hhook=%p,event=%x,hwnd=%p,object_id=%x,child_id=%x,tid=%04x,time=%x)
\n
"
,
proc
,
info
.
handle
,
event
,
hwnd
,
object_id
,
child_id
,
GetCurrentThreadId
(),
GetCurrentTime
());
if
(
free_module
)
FreeLibrary
(
free_module
);
...
...
dlls/user32/message.c
View file @
01676c5d
...
...
@@ -2708,15 +2708,11 @@ static inline void call_sendmsg_callback( SENDASYNCPROC callback, HWND hwnd, UIN
{
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
),
data
,
result
);
TRACE_
(
relay
)(
"
\1
Call message callback %p (hwnd=%p,msg=%s,data=%08lx,result=%08lx)
\n
"
,
callback
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
data
,
result
);
callback
(
hwnd
,
msg
,
data
,
result
);
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Ret message callback %p (hwnd=%p,msg=%s,data=%08lx,result=%08lx)
\n
"
,
GetCurrentThreadId
(),
callback
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
data
,
result
);
TRACE_
(
relay
)(
"
\1
Ret message callback %p (hwnd=%p,msg=%s,data=%08lx,result=%08lx)
\n
"
,
callback
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
data
,
result
);
}
...
...
@@ -2832,21 +2828,17 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags
}
}
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Call winevent proc %p (hook=%04x,event=%x,hwnd=%p,object_id=%lx,child_id=%lx,tid=%04x,time=%x)
\n
"
,
GetCurrentThreadId
(),
hook_proc
,
msg_data
->
winevent
.
hook
,
info
.
msg
.
message
,
info
.
msg
.
hwnd
,
info
.
msg
.
wParam
,
info
.
msg
.
lParam
,
msg_data
->
winevent
.
tid
,
info
.
msg
.
time
);
TRACE_
(
relay
)(
"
\1
Call winevent proc %p (hook=%04x,event=%x,hwnd=%p,object_id=%lx,child_id=%lx,tid=%04x,time=%x)
\n
"
,
hook_proc
,
msg_data
->
winevent
.
hook
,
info
.
msg
.
message
,
info
.
msg
.
hwnd
,
info
.
msg
.
wParam
,
info
.
msg
.
lParam
,
msg_data
->
winevent
.
tid
,
info
.
msg
.
time
);
hook_proc
(
wine_server_ptr_handle
(
msg_data
->
winevent
.
hook
),
info
.
msg
.
message
,
info
.
msg
.
hwnd
,
info
.
msg
.
wParam
,
info
.
msg
.
lParam
,
msg_data
->
winevent
.
tid
,
info
.
msg
.
time
);
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Ret winevent proc %p (hook=%04x,event=%x,hwnd=%p,object_id=%lx,child_id=%lx,tid=%04x,time=%x)
\n
"
,
GetCurrentThreadId
(),
hook_proc
,
msg_data
->
winevent
.
hook
,
info
.
msg
.
message
,
info
.
msg
.
hwnd
,
info
.
msg
.
wParam
,
info
.
msg
.
lParam
,
msg_data
->
winevent
.
tid
,
info
.
msg
.
time
);
TRACE_
(
relay
)(
"
\1
Ret winevent proc %p (hook=%04x,event=%x,hwnd=%p,object_id=%lx,child_id=%lx,tid=%04x,time=%x)
\n
"
,
hook_proc
,
msg_data
->
winevent
.
hook
,
info
.
msg
.
message
,
info
.
msg
.
hwnd
,
info
.
msg
.
wParam
,
info
.
msg
.
lParam
,
msg_data
->
winevent
.
tid
,
info
.
msg
.
time
);
if
(
free_module
)
FreeLibrary
(
free_module
);
}
...
...
dlls/user32/winproc.c
View file @
01676c5d
...
...
@@ -238,15 +238,13 @@ static LRESULT call_window_proc( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp, LRES
USER_CheckNotLock
();
hwnd
=
WIN_GetFullHandle
(
hwnd
);
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Call window proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx)
\n
"
,
GetCurrentThreadId
(),
proc
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wp
,
lp
);
TRACE_
(
relay
)(
"
\1
Call window proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx)
\n
"
,
proc
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wp
,
lp
);
*
result
=
WINPROC_wrapper
(
proc
,
hwnd
,
msg
,
wp
,
lp
);
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Ret window proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx) retval=%08lx
\n
"
,
GetCurrentThreadId
(),
proc
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wp
,
lp
,
*
result
);
TRACE_
(
relay
)(
"
\1
Ret window proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx) retval=%08lx
\n
"
,
proc
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wp
,
lp
,
*
result
);
return
*
result
;
}
...
...
@@ -259,16 +257,14 @@ static LRESULT call_dialog_proc( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp, LRES
USER_CheckNotLock
();
hwnd
=
WIN_GetFullHandle
(
hwnd
);
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Call dialog proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx)
\n
"
,
GetCurrentThreadId
(),
proc
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wp
,
lp
);
TRACE_
(
relay
)(
"
\1
Call dialog proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx)
\n
"
,
proc
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wp
,
lp
);
ret
=
WINPROC_wrapper
(
proc
,
hwnd
,
msg
,
wp
,
lp
);
*
result
=
GetWindowLongPtrW
(
hwnd
,
DWLP_MSGRESULT
);
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Ret dialog proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx) retval=%08lx result=%08lx
\n
"
,
GetCurrentThreadId
(),
proc
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wp
,
lp
,
ret
,
*
result
);
TRACE_
(
relay
)(
"
\1
Ret dialog proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx) retval=%08lx result=%08lx
\n
"
,
proc
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wp
,
lp
,
ret
,
*
result
);
return
ret
;
}
...
...
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