winealsa.drv: Fixed bad sizeof (pointer vs struct) (Coverity).
This commit is contained in:
parent
a6424b9445
commit
a1a2de1853
|
@ -351,7 +351,7 @@ void ALSA_copyFormat(LPWAVEFORMATEX wf1, LPWAVEFORMATPCMEX wf2)
|
||||||
{
|
{
|
||||||
unsigned int iLength;
|
unsigned int iLength;
|
||||||
|
|
||||||
ZeroMemory(wf2, sizeof(wf2));
|
ZeroMemory(wf2, sizeof(*wf2));
|
||||||
if (wf1->wFormatTag == WAVE_FORMAT_PCM)
|
if (wf1->wFormatTag == WAVE_FORMAT_PCM)
|
||||||
iLength = sizeof(PCMWAVEFORMAT);
|
iLength = sizeof(PCMWAVEFORMAT);
|
||||||
else if (wf1->wFormatTag == WAVE_FORMAT_EXTENSIBLE)
|
else if (wf1->wFormatTag == WAVE_FORMAT_EXTENSIBLE)
|
||||||
|
|
Loading…
Reference in New Issue