mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
mciseq: Don't use sizeof in traces to avoid printf format warnings.
This commit is contained in:
parent
1c66c611a1
commit
5784ca9bca
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user