Commit ea15a544 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

avicap32: Use the correct return type for get_device_desc().

get_device_desc() should return a NTSTATUS instead of a BOOL. Fix a regression that video capture devices cannot be opened because of the changes in abb17573. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 46f3ca49
......@@ -119,14 +119,14 @@ static NTSTATUS get_device_desc(void *args)
v4l_umbstowcs(version, ret, params->version, ARRAY_SIZE(params->version));
}
close(fd);
return is_capture_device;
return is_capture_device ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL;
}
/* errno 515 is used by some webcam drivers for unknown IOCTL commands. */
ERR("Failed to get capabilities for %s: %s\n", device, strerror(errno));
close(fd);
return FALSE;
return STATUS_UNSUCCESSFUL;
}
const unixlib_entry_t __wine_unix_call_funcs[] =
......
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