Module: wine Branch: master Commit: a1a2de18532173248961c39dfb0e9a5649fe0b89 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a1a2de18532173248961c39dfb... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Mon Mar 14 08:36:47 2011 +0100 winealsa.drv: Fixed bad sizeof (pointer vs struct) (Coverity). --- dlls/winealsa.drv/alsa.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/winealsa.drv/alsa.c b/dlls/winealsa.drv/alsa.c index 0b244fa..ca775a2 100644 --- a/dlls/winealsa.drv/alsa.c +++ b/dlls/winealsa.drv/alsa.c @@ -351,7 +351,7 @@ void ALSA_copyFormat(LPWAVEFORMATEX wf1, LPWAVEFORMATPCMEX wf2) { unsigned int iLength; - ZeroMemory(wf2, sizeof(wf2)); + ZeroMemory(wf2, sizeof(*wf2)); if (wf1->wFormatTag == WAVE_FORMAT_PCM) iLength = sizeof(PCMWAVEFORMAT); else if (wf1->wFormatTag == WAVE_FORMAT_EXTENSIBLE)