1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-09 04:16:08 +00:00

avicap32: Fail gracefully if V4L is unavailable.

Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
This commit is contained in:
Brendan Shanks 2022-06-01 21:27:18 -07:00 committed by Alexandre Julliard
parent aa0186be62
commit ff31e13260

View File

@ -125,7 +125,7 @@ BOOL VFWAPI capGetDriverDescriptionW(WORD index, WCHAR *name, int name_len, WCHA
struct get_device_desc_params params;
params.index = index;
if (__wine_unix_call(unix_handle, unix_get_device_desc, &params))
if (!unix_handle || __wine_unix_call(unix_handle, unix_get_device_desc, &params))
return FALSE;
TRACE("Found device name %s, version %s.\n", debugstr_w(params.name), debugstr_w(params.version));