Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
5784ca9b
Commit
5784ca9b
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciseq: Don't use sizeof in traces to avoid printf format warnings.
parent
1c66c611
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mcimidi.c
dlls/mciseq/mcimidi.c
+2
-2
No files found.
dlls/mciseq/mcimidi.c
View file @
5784ca9b
...
...
@@ -400,7 +400,7 @@ static DWORD MIDI_mciReadMTrk(WINE_MCIMIDI* wmm, MCI_MIDITRACK* mmt)
len
=
mmt
->
wEventLength
-
HIWORD
(
mmt
->
dwEventData
);
if
(
len
>=
sizeof
(
buf
))
{
WARN
(
"Buffer for text is too small (%
d bytes, when %u are needed)
\n
"
,
sizeof
(
buf
)
-
1
,
len
);
WARN
(
"Buffer for text is too small (%
u are needed)
\n
"
,
len
);
len
=
sizeof
(
buf
)
-
1
;
}
if
(
mmioRead
(
wmm
->
hFile
,
(
HPSTR
)
buf
,
len
)
==
len
)
{
...
...
@@ -1049,7 +1049,7 @@ static DWORD MIDI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
WORD
idx
=
HIBYTE
(
LOWORD
(
mmt
->
dwEventData
));
if
(
len
>=
sizeof
(
buf
))
{
WARN
(
"Buffer for text is too small (%
d bytes, when %u are needed)
\n
"
,
sizeof
(
buf
)
-
1
,
len
);
WARN
(
"Buffer for text is too small (%
u are needed)
\n
"
,
len
);
len
=
sizeof
(
buf
)
-
1
;
}
if
(
mmioRead
(
wmm
->
hFile
,
(
HPSTR
)
buf
,
len
)
==
len
)
{
...
...
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