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
7ad5f9ec
Commit
7ad5f9ec
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Don't use sizeof in traces to avoid printf format warnings.
parent
43743282
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
device.c
dlls/dinput/device.c
+2
-2
No files found.
dlls/dinput/device.c
View file @
7ad5f9ec
...
@@ -189,11 +189,11 @@ void _dump_DIDATAFORMAT(const DIDATAFORMAT *df) {
...
@@ -189,11 +189,11 @@ void _dump_DIDATAFORMAT(const DIDATAFORMAT *df) {
TRACE
(
"Dumping DIDATAFORMAT structure:
\n
"
);
TRACE
(
"Dumping DIDATAFORMAT structure:
\n
"
);
TRACE
(
" - dwSize: %ld
\n
"
,
df
->
dwSize
);
TRACE
(
" - dwSize: %ld
\n
"
,
df
->
dwSize
);
if
(
df
->
dwSize
!=
sizeof
(
DIDATAFORMAT
))
{
if
(
df
->
dwSize
!=
sizeof
(
DIDATAFORMAT
))
{
WARN
(
"Non-standard DIDATAFORMAT structure size
(%ld instead of %d).
\n
"
,
df
->
dwSize
,
sizeof
(
DIDATAFORMAT
)
);
WARN
(
"Non-standard DIDATAFORMAT structure size
%ld
\n
"
,
df
->
dwSize
);
}
}
TRACE
(
" - dwObjsize: %ld
\n
"
,
df
->
dwObjSize
);
TRACE
(
" - dwObjsize: %ld
\n
"
,
df
->
dwObjSize
);
if
(
df
->
dwObjSize
!=
sizeof
(
DIOBJECTDATAFORMAT
))
{
if
(
df
->
dwObjSize
!=
sizeof
(
DIOBJECTDATAFORMAT
))
{
WARN
(
"Non-standard DIOBJECTDATAFORMAT structure size
(%ld instead of %d).
\n
"
,
df
->
dwObjSize
,
sizeof
(
DIOBJECTDATAFORMAT
)
);
WARN
(
"Non-standard DIOBJECTDATAFORMAT structure size
%ld
\n
"
,
df
->
dwObjSize
);
}
}
TRACE
(
" - dwFlags: 0x%08lx ("
,
df
->
dwFlags
);
TRACE
(
" - dwFlags: 0x%08lx ("
,
df
->
dwFlags
);
switch
(
df
->
dwFlags
)
{
switch
(
df
->
dwFlags
)
{
...
...
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