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
ec3e9462
Commit
ec3e9462
authored
Oct 06, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make message spy thread safe.
parent
fd19a1f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
spy.c
windows/spy.c
+10
-11
No files found.
windows/spy.c
View file @
ec3e9462
...
@@ -1826,9 +1826,6 @@ typedef struct
...
@@ -1826,9 +1826,6 @@ typedef struct
WCHAR
wnd_name
[
16
];
/* window name for message */
WCHAR
wnd_name
[
16
];
/* window name for message */
}
SPY_INSTANCE
;
}
SPY_INSTANCE
;
/* This is defined so that the external entry point can return the addr */
static
SPY_INSTANCE
ext_sp_e
;
static
int
indent_tls_index
;
static
int
indent_tls_index
;
/***********************************************************************
/***********************************************************************
...
@@ -1884,7 +1881,7 @@ static const char *SPY_GetMsgInternal( UINT msg )
...
@@ -1884,7 +1881,7 @@ static const char *SPY_GetMsgInternal( UINT msg )
/***********************************************************************
/***********************************************************************
* SPY_Bsearch_Msg
* SPY_Bsearch_Msg
*/
*/
const
USER_MSG
*
SPY_Bsearch_Msg
(
const
USER_MSG
*
first
,
const
USER_MSG
*
last
,
UINT
code
)
static
const
USER_MSG
*
SPY_Bsearch_Msg
(
const
USER_MSG
*
first
,
const
USER_MSG
*
last
,
UINT
code
)
{
{
INT
count
;
INT
count
;
const
USER_MSG
*
test
;
const
USER_MSG
*
test
;
...
@@ -1944,7 +1941,7 @@ static void SPY_GetMsgStuff( SPY_INSTANCE *sp_e )
...
@@ -1944,7 +1941,7 @@ static void SPY_GetMsgStuff( SPY_INSTANCE *sp_e )
#endif
#endif
while
(
cc_array
[
i
].
classname
&&
while
(
cc_array
[
i
].
classname
&&
strcmp
W
(
cc_array
[
i
].
classname
,
sp_e
->
wnd_class
)
!=
0
)
i
++
;
strcmp
iW
(
cc_array
[
i
].
classname
,
sp_e
->
wnd_class
)
!=
0
)
i
++
;
if
(
cc_array
[
i
].
classname
)
if
(
cc_array
[
i
].
classname
)
{
{
...
@@ -1977,7 +1974,7 @@ static void SPY_GetMsgStuff( SPY_INSTANCE *sp_e )
...
@@ -1977,7 +1974,7 @@ static void SPY_GetMsgStuff( SPY_INSTANCE *sp_e )
* instance structure.
* instance structure.
*
*
*/
*/
void
SPY_GetWndName
(
SPY_INSTANCE
*
sp_e
)
static
void
SPY_GetWndName
(
SPY_INSTANCE
*
sp_e
)
{
{
DWORD
save_error
;
DWORD
save_error
;
INT
len
;
INT
len
;
...
@@ -2016,13 +2013,15 @@ void SPY_GetWndName( SPY_INSTANCE *sp_e )
...
@@ -2016,13 +2013,15 @@ void SPY_GetWndName( SPY_INSTANCE *sp_e )
*/
*/
const
char
*
SPY_GetMsgName
(
UINT
msg
,
HWND
hWnd
)
const
char
*
SPY_GetMsgName
(
UINT
msg
,
HWND
hWnd
)
{
{
SPY_INSTANCE
ext_sp_e
;
ext_sp_e
.
msgnum
=
msg
;
ext_sp_e
.
msgnum
=
msg
;
ext_sp_e
.
msg_hwnd
=
hWnd
;
ext_sp_e
.
msg_hwnd
=
hWnd
;
ext_sp_e
.
lParam
=
0
;
ext_sp_e
.
lParam
=
0
;
ext_sp_e
.
wParam
=
0
;
ext_sp_e
.
wParam
=
0
;
SPY_GetWndName
(
&
ext_sp_e
);
SPY_GetWndName
(
&
ext_sp_e
);
SPY_GetMsgStuff
(
&
ext_sp_e
);
SPY_GetMsgStuff
(
&
ext_sp_e
);
return
ext_sp_e
.
msg_name
;
return
wine_dbg_sprintf
(
"%s"
,
ext_sp_e
.
msg_name
)
;
}
}
/***********************************************************************
/***********************************************************************
...
@@ -2043,7 +2042,7 @@ const char *SPY_GetVKeyName(WPARAM wParam)
...
@@ -2043,7 +2042,7 @@ const char *SPY_GetVKeyName(WPARAM wParam)
/***********************************************************************
/***********************************************************************
* SPY_Bsearch_Notify
* SPY_Bsearch_Notify
*/
*/
const
SPY_NOTIFY
*
SPY_Bsearch_Notify
(
const
SPY_NOTIFY
*
first
,
const
SPY_NOTIFY
*
last
,
UINT
code
)
static
const
SPY_NOTIFY
*
SPY_Bsearch_Notify
(
const
SPY_NOTIFY
*
first
,
const
SPY_NOTIFY
*
last
,
UINT
code
)
{
{
INT
count
;
INT
count
;
const
SPY_NOTIFY
*
test
;
const
SPY_NOTIFY
*
test
;
...
@@ -2077,7 +2076,7 @@ const SPY_NOTIFY *SPY_Bsearch_Notify( const SPY_NOTIFY *first, const SPY_NOTIFY
...
@@ -2077,7 +2076,7 @@ const SPY_NOTIFY *SPY_Bsearch_Notify( const SPY_NOTIFY *first, const SPY_NOTIFY
/***********************************************************************
/***********************************************************************
* SPY_DumpMem
* SPY_DumpMem
*/
*/
void
SPY_DumpMem
(
LPCSTR
header
,
UINT
*
q
,
INT
len
)
static
void
SPY_DumpMem
(
LPCSTR
header
,
const
UINT
*
q
,
INT
len
)
{
{
int
i
;
int
i
;
...
@@ -2111,7 +2110,7 @@ void SPY_DumpMem (LPCSTR header, UINT *q, INT len)
...
@@ -2111,7 +2110,7 @@ void SPY_DumpMem (LPCSTR header, UINT *q, INT len)
/***********************************************************************
/***********************************************************************
* SPY_DumpStructure
* SPY_DumpStructure
*/
*/
void
SPY_DumpStructure
(
SPY_INSTANCE
*
sp_e
,
BOOL
enter
)
static
void
SPY_DumpStructure
(
const
SPY_INSTANCE
*
sp_e
,
BOOL
enter
)
{
{
switch
(
sp_e
->
msgnum
)
switch
(
sp_e
->
msgnum
)
{
{
...
@@ -2294,7 +2293,7 @@ void SPY_EnterMessage( INT iFlag, HWND hWnd, UINT msg,
...
@@ -2294,7 +2293,7 @@ void SPY_EnterMessage( INT iFlag, HWND hWnd, UINT msg,
if
(
!
TRACE_ON
(
message
)
||
SPY_EXCLUDE
(
msg
))
return
;
if
(
!
TRACE_ON
(
message
)
||
SPY_EXCLUDE
(
msg
))
return
;
sp_e
.
msgnum
=
msg
;
sp_e
.
msgnum
=
msg
;
sp_e
.
msg_hwnd
=
hWnd
;
sp_e
.
msg_hwnd
=
hWnd
;
sp_e
.
lParam
=
lParam
;
sp_e
.
lParam
=
lParam
;
sp_e
.
wParam
=
wParam
;
sp_e
.
wParam
=
wParam
;
SPY_GetWndName
(
&
sp_e
);
SPY_GetWndName
(
&
sp_e
);
...
...
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