From 5c9396d734447ed4d36bf6497e018ae4399e4c7a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 7 Dec 2007 18:42:00 +0100 Subject: [PATCH] msvfw32: Fix invalid check that caused the rest of VideoCapDriverDescAndVer16 to be optimized out. --- dlls/msvfw32/Makefile.in | 2 +- dlls/msvfw32/msvideo16.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvfw32/Makefile.in b/dlls/msvfw32/Makefile.in index 4014d5dada9..5e3218ccc44 100644 --- a/dlls/msvfw32/Makefile.in +++ b/dlls/msvfw32/Makefile.in @@ -4,7 +4,7 @@ SRCDIR = @srcdir@ VPATH = @srcdir@ MODULE = msvfw32.dll IMPORTLIB = libmsvfw32.$(IMPLIBEXT) -IMPORTS = winmm comctl32 user32 gdi32 advapi32 kernel32 ntdll +IMPORTS = winmm version comctl32 user32 gdi32 advapi32 kernel32 ntdll C_SRCS = \ mciwnd.c \ diff --git a/dlls/msvfw32/msvideo16.c b/dlls/msvfw32/msvideo16.c index 00e08890596..263f21b8b96 100644 --- a/dlls/msvfw32/msvideo16.c +++ b/dlls/msvfw32/msvideo16.c @@ -813,7 +813,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len, } } - if (nr || !found) + if (!found) { TRACE("No more VID* entries found nr=%d\n", nr); return 20; -- 2.11.4.GIT