From 242cbcaa27558de6bfe5f28805f1f89169cc497b Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 23 Feb 2011 03:22:52 +0100 Subject: [PATCH] wineoss.drv: Fixed incorrect sizeof() (Coverity). --- dlls/wineoss.drv/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wineoss.drv/audio.c b/dlls/wineoss.drv/audio.c index 559887997e1..76f49aed18f 100644 --- a/dlls/wineoss.drv/audio.c +++ b/dlls/wineoss.drv/audio.c @@ -297,7 +297,7 @@ static BOOL supportedFormat(LPWAVEFORMATEX wf) void copy_format(LPWAVEFORMATEX wf1, LPWAVEFORMATPCMEX wf2) { - ZeroMemory(wf2, sizeof(wf2)); + ZeroMemory(wf2, sizeof(*wf2)); if (wf1->wFormatTag == WAVE_FORMAT_PCM) memcpy(wf2, wf1, sizeof(PCMWAVEFORMAT)); else if (wf1->wFormatTag == WAVE_FORMAT_EXTENSIBLE)