[PATCH v2 1/1] avicap32: Fail gracefully if V4L is unavailable.
Brendan Shanks
wine at gitlab.winehq.org
Thu Jun 2 15:37:37 CDT 2022
From: Brendan Shanks <bshanks at codeweavers.com>
Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>
---
dlls/avicap32/avicap32_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/avicap32/avicap32_main.c b/dlls/avicap32/avicap32_main.c
index cefd1f0fe6e..1a1c514e931 100644
--- a/dlls/avicap32/avicap32_main.c
+++ b/dlls/avicap32/avicap32_main.c
@@ -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, ¶ms))
+ if (!unix_handle || __wine_unix_call(unix_handle, unix_get_device_desc, ¶ms))
return FALSE;
TRACE("Found device name %s, version %s.\n", debugstr_w(params.name), debugstr_w(params.version));
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/163
More information about the wine-devel
mailing list