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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
spy.c
windows/spy.c
+9
-10
No files found.
windows/spy.c
View file @
ec3e9462
...
...
@@ -1826,9 +1826,6 @@ typedef struct
WCHAR
wnd_name
[
16
];
/* window name for message */
}
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
;
/***********************************************************************
...
...
@@ -1884,7 +1881,7 @@ static const char *SPY_GetMsgInternal( UINT 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
;
const
USER_MSG
*
test
;
...
...
@@ -1944,7 +1941,7 @@ static void SPY_GetMsgStuff( SPY_INSTANCE *sp_e )
#endif
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
)
{
...
...
@@ -1977,7 +1974,7 @@ static void SPY_GetMsgStuff( SPY_INSTANCE *sp_e )
* instance structure.
*
*/
void
SPY_GetWndName
(
SPY_INSTANCE
*
sp_e
)
static
void
SPY_GetWndName
(
SPY_INSTANCE
*
sp_e
)
{
DWORD
save_error
;
INT
len
;
...
...
@@ -2016,13 +2013,15 @@ void SPY_GetWndName( SPY_INSTANCE *sp_e )
*/
const
char
*
SPY_GetMsgName
(
UINT
msg
,
HWND
hWnd
)
{
SPY_INSTANCE
ext_sp_e
;
ext_sp_e
.
msgnum
=
msg
;
ext_sp_e
.
msg_hwnd
=
hWnd
;
ext_sp_e
.
lParam
=
0
;
ext_sp_e
.
wParam
=
0
;
SPY_GetWndName
(
&
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)
/***********************************************************************
* 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
;
const
SPY_NOTIFY
*
test
;
...
...
@@ -2077,7 +2076,7 @@ const SPY_NOTIFY *SPY_Bsearch_Notify( const SPY_NOTIFY *first, const SPY_NOTIFY
/***********************************************************************
* SPY_DumpMem
*/
void
SPY_DumpMem
(
LPCSTR
header
,
UINT
*
q
,
INT
len
)
static
void
SPY_DumpMem
(
LPCSTR
header
,
const
UINT
*
q
,
INT
len
)
{
int
i
;
...
...
@@ -2111,7 +2110,7 @@ void SPY_DumpMem (LPCSTR header, UINT *q, INT len)
/***********************************************************************
* 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
)
{
...
...
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