[PATCH] msvf32: fixed incorrect sizeof (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sat Jun 22 11:14:10 CDT 2013
sizeof(struct), not sizeof(struct*)
701346 Wrong sizeof argument
(audited the other occurences, they are ok)
---
dlls/msvfw32/msvideo_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvfw32/msvideo_main.c b/dlls/msvfw32/msvideo_main.c
index f418481..ea38e0f 100644
--- a/dlls/msvfw32/msvideo_main.c
+++ b/dlls/msvfw32/msvideo_main.c
@@ -1373,7 +1373,7 @@ LPVOID VFWAPI ICSeqCompressFrame(PCOMPVARS pc, UINT uiFlags, LPVOID lpBits, BOOL
icComp->lFrameNum = pc->lFrame++;
icComp->lpOutput = pc->lpBitsOut;
icComp->lpPrev = pc->lpBitsPrev;
- ret = ICSendMessage(pc->hic, ICM_COMPRESS, (DWORD_PTR)icComp, sizeof(icComp));
+ ret = ICSendMessage(pc->hic, ICM_COMPRESS, (DWORD_PTR)icComp, sizeof(*icComp));
if (icComp->dwFlags & AVIIF_KEYFRAME)
{
--
1.7.10.4
More information about the wine-patches
mailing list