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
60ed3428
Commit
60ed3428
authored
Mar 09, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Avoid snprintf, it's broken on Mingw.
parent
1b9a6fb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
msg.c
dlls/user32/tests/msg.c
+10
-12
No files found.
dlls/user32/tests/msg.c
View file @
60ed3428
...
...
@@ -1776,13 +1776,13 @@ static void add_message_(int line, const struct recvd_message *msg)
};
const
char
*
code_name
=
(
msg
->
message
<=
HCBT_SETFOCUS
)
?
CBT_code_name
[
msg
->
message
]
:
"Unknown"
;
s
nprintf
(
seq
->
output
,
sizeof
(
seq
->
output
)
,
"%s: hook %d (%s) wp %08lx lp %08lx"
,
msg
->
descr
,
msg
->
message
,
code_name
,
msg
->
wParam
,
msg
->
lParam
);
s
printf
(
seq
->
output
,
"%s: hook %d (%s) wp %08lx lp %08lx"
,
msg
->
descr
,
msg
->
message
,
code_name
,
msg
->
wParam
,
msg
->
lParam
);
}
else
if
(
msg
->
flags
&
winevent_hook
)
{
s
nprintf
(
seq
->
output
,
sizeof
(
seq
->
output
)
,
"%s: winevent %p %08x %08lx %08lx"
,
msg
->
descr
,
msg
->
hwnd
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
);
s
printf
(
seq
->
output
,
"%s: winevent %p %08x %08lx %08lx"
,
msg
->
descr
,
msg
->
hwnd
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
);
}
else
{
...
...
@@ -1793,8 +1793,7 @@ static void add_message_(int line, const struct recvd_message *msg)
{
WINDOWPOS
*
winpos
=
(
WINDOWPOS
*
)
msg
->
lParam
;
snprintf
(
seq
->
output
,
sizeof
(
seq
->
output
),
"%s: %p WM_WINDOWPOS%s wp %08lx lp %08lx after %p x %d y %d cx %d cy %d flags %s"
,
sprintf
(
seq
->
output
,
"%s: %p WM_WINDOWPOS%s wp %08lx lp %08lx after %p x %d y %d cx %d cy %d flags %s"
,
msg
->
descr
,
msg
->
hwnd
,
(
msg
->
message
==
WM_WINDOWPOSCHANGING
)
?
"CHANGING"
:
"CHANGED"
,
msg
->
wParam
,
msg
->
lParam
,
winpos
->
hwndInsertAfter
,
...
...
@@ -1815,10 +1814,9 @@ static void add_message_(int line, const struct recvd_message *msg)
DRAW_ITEM_STRUCT
di
;
DRAWITEMSTRUCT
*
dis
=
(
DRAWITEMSTRUCT
*
)
msg
->
lParam
;
snprintf
(
seq
->
output
,
sizeof
(
seq
->
output
),
"%s: %p WM_DRAWITEM: type %x, ctl_id %x, item_id %x, action %x, state %x"
,
msg
->
descr
,
msg
->
hwnd
,
dis
->
CtlType
,
dis
->
CtlID
,
dis
->
itemID
,
dis
->
itemAction
,
dis
->
itemState
);
sprintf
(
seq
->
output
,
"%s: %p WM_DRAWITEM: type %x, ctl_id %x, item_id %x, action %x, state %x"
,
msg
->
descr
,
msg
->
hwnd
,
dis
->
CtlType
,
dis
->
CtlID
,
dis
->
itemID
,
dis
->
itemAction
,
dis
->
itemState
);
di
.
u
.
lp
=
0
;
di
.
u
.
item
.
type
=
dis
->
CtlType
;
...
...
@@ -1832,8 +1830,8 @@ static void add_message_(int line, const struct recvd_message *msg)
}
default:
if
(
msg
->
message
>=
0xc000
)
return
;
/* ignore registered messages */
s
nprintf
(
seq
->
output
,
sizeof
(
seq
->
output
)
,
"%s: %p %04x wp %08lx lp %08lx"
,
msg
->
descr
,
msg
->
hwnd
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
);
s
printf
(
seq
->
output
,
"%s: %p %04x wp %08lx lp %08lx"
,
msg
->
descr
,
msg
->
hwnd
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
);
}
}
}
...
...
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