Commit 5c9396d7 authored by Alexandre Julliard's avatar Alexandre Julliard

msvfw32: Fix invalid check that caused the rest of VideoCapDriverDescAndVer16 to be optimized out.

parent 86af5b97
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = msvfw32.dll MODULE = msvfw32.dll
IMPORTLIB = libmsvfw32.$(IMPLIBEXT) IMPORTLIB = libmsvfw32.$(IMPLIBEXT)
IMPORTS = winmm comctl32 user32 gdi32 advapi32 kernel32 ntdll IMPORTS = winmm version comctl32 user32 gdi32 advapi32 kernel32 ntdll
C_SRCS = \ C_SRCS = \
mciwnd.c \ mciwnd.c \
......
...@@ -813,7 +813,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len, ...@@ -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); TRACE("No more VID* entries found nr=%d\n", nr);
return 20; return 20;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment