Andrew Talbot : avifil32: Fix use of wrong variable in expression.
Alexandre Julliard
julliard at winehq.org
Wed Sep 21 13:35:14 CDT 2011
Module: wine
Branch: master
Commit: f2a0f05082cd2004f83c2f0d20d8f219a0417538
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f2a0f05082cd2004f83c2f0d20d8f219a0417538
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Tue Sep 20 21:36:30 2011 +0100
avifil32: Fix use of wrong variable in expression.
---
dlls/avifil32/avifile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/avifil32/avifile.c b/dlls/avifil32/avifile.c
index f37395f..885d239 100644
--- a/dlls/avifil32/avifile.c
+++ b/dlls/avifil32/avifile.c
@@ -1339,7 +1339,7 @@ static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream *iface, DWORD fcc,
/* ckid,size => 2 * sizeof(DWORD) */
dwPos += 2 * sizeof(DWORD) + size;
- if (size >= This->paf->dwMoviChunkPos - 2 * sizeof(DWORD))
+ if (dwPos >= This->paf->dwMoviChunkPos - 2 * sizeof(DWORD))
return AVIERR_UNSUPPORTED; /* not enough space left */
}
More information about the wine-cvs
mailing list