wineoss.drv: Fixed incorrect sizeof() (Coverity).
This commit is contained in:
parent
6d887f072f
commit
242cbcaa27
|
@ -297,7 +297,7 @@ static BOOL supportedFormat(LPWAVEFORMATEX wf)
|
||||||
|
|
||||||
void copy_format(LPWAVEFORMATEX wf1, LPWAVEFORMATPCMEX wf2)
|
void copy_format(LPWAVEFORMATEX wf1, LPWAVEFORMATPCMEX wf2)
|
||||||
{
|
{
|
||||||
ZeroMemory(wf2, sizeof(wf2));
|
ZeroMemory(wf2, sizeof(*wf2));
|
||||||
if (wf1->wFormatTag == WAVE_FORMAT_PCM)
|
if (wf1->wFormatTag == WAVE_FORMAT_PCM)
|
||||||
memcpy(wf2, wf1, sizeof(PCMWAVEFORMAT));
|
memcpy(wf2, wf1, sizeof(PCMWAVEFORMAT));
|
||||||
else if (wf1->wFormatTag == WAVE_FORMAT_EXTENSIBLE)
|
else if (wf1->wFormatTag == WAVE_FORMAT_EXTENSIBLE)
|
||||||
|
|
Loading…
Reference in New Issue