winealsa.drv: Get rid of sizeof in traces.
This commit is contained in:
parent
c4b5233974
commit
1d9637f5cd
|
@ -389,7 +389,7 @@ void ALSA_copyFormat(LPWAVEFORMATEX wf1, LPWAVEFORMATPCMEX wf2)
|
||||||
else
|
else
|
||||||
iLength = sizeof(WAVEFORMATEX) + wf1->cbSize;
|
iLength = sizeof(WAVEFORMATEX) + wf1->cbSize;
|
||||||
if (iLength > sizeof(WAVEFORMATPCMEX)) {
|
if (iLength > sizeof(WAVEFORMATPCMEX)) {
|
||||||
ERR("calculated %u bytes, capping to %u bytes\n", iLength, sizeof(WAVEFORMATPCMEX));
|
ERR("calculated %u bytes, capping\n", iLength);
|
||||||
iLength = sizeof(WAVEFORMATPCMEX);
|
iLength = sizeof(WAVEFORMATPCMEX);
|
||||||
}
|
}
|
||||||
memcpy(wf2, wf1, iLength);
|
memcpy(wf2, wf1, iLength);
|
||||||
|
|
|
@ -1050,8 +1050,8 @@ static DWORD modPrepare(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
|
||||||
if (dwSize < sizeof(MIDIHDR) || lpMidiHdr == 0 ||
|
if (dwSize < sizeof(MIDIHDR) || lpMidiHdr == 0 ||
|
||||||
lpMidiHdr->lpData == 0 || (lpMidiHdr->dwFlags & MHDR_INQUEUE) != 0 ||
|
lpMidiHdr->lpData == 0 || (lpMidiHdr->dwFlags & MHDR_INQUEUE) != 0 ||
|
||||||
lpMidiHdr->dwBufferLength >= 0x10000ul) {
|
lpMidiHdr->dwBufferLength >= 0x10000ul) {
|
||||||
WARN("%p %p %08x %d/%d\n", lpMidiHdr, lpMidiHdr ? lpMidiHdr->lpData : NULL,
|
WARN("%p %p %08x %d\n", lpMidiHdr, lpMidiHdr ? lpMidiHdr->lpData : NULL,
|
||||||
lpMidiHdr ? lpMidiHdr->dwFlags : 0, sizeof(MIDIHDR), dwSize);
|
lpMidiHdr ? lpMidiHdr->dwFlags : 0, dwSize);
|
||||||
return MMSYSERR_INVALPARAM;
|
return MMSYSERR_INVALPARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue