From: "Andrew Eikum (@aeikum)" Subject: Re: [PATCH 0/1] MR338: mmdevapi: Override product strings for DualSense controller audio devices Message-Id: Date: Wed, 29 Jun 2022 13:40:33 +0000 In-Reply-To: References: Andrew Eikum (@aeikum) commented about dlls/mmdevapi/devenum.c: > return hr; > } > > +struct device_strings > +{ > + const WCHAR *id; > + const WCHAR *product; > +}; > + > +static const struct device_strings device_strings[] = > +{ > + /* Sony controllers */ > + { .id = L"VID_054C&PID_0CE6", .product = L"Wireless Controller" }, > +}; > + > +static const WCHAR *find_device_string(const WCHAR *device_id) I know this function came from `hidclass`, but I think I'd call it something more descriptive like `product_name_override`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/338#note_2951