Instead of querying all properties and then matching to requested one, first check if all requested properties are supported by given class. Then select just that subset. Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com> -- https://gitlab.winehq.org/wine/wine/-/merge_requests/371