Rob Shearman : avifil32: Simplify a comparison in AVIBuildFilterW.
Alexandre Julliard
julliard at winehq.org
Tue Feb 19 08:05:21 CST 2008
Module: wine
Branch: master
Commit: c6c205a1d56bf78f026c1470df87640929b106d8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c6c205a1d56bf78f026c1470df87640929b106d8
Author: Rob Shearman <rob at codeweavers.com>
Date: Tue Feb 19 11:36:55 2008 +0000
avifil32: Simplify a comparison in AVIBuildFilterW.
---
dlls/avifil32/api.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/avifil32/api.c b/dlls/avifil32/api.c
index 7753e39..47947b5 100644
--- a/dlls/avifil32/api.c
+++ b/dlls/avifil32/api.c
@@ -1077,7 +1077,7 @@ HRESULT WINAPI AVIBuildFilterW(LPWSTR szFilter, LONG cbFilter, BOOL fSaving)
break; /* a new one */
}
- if (count - i == -1U) {
+ if (i == count + 1) {
/* it's a new CLSID */
/* FIXME: How do we get info's about read/write capabilities? */
More information about the wine-cvs
mailing list