Module: wine Branch: master Commit: ef316163931a63e1e9655aed25cf8fae0066aa36 URL: https://gitlab.winehq.org/wine/wine/-/commit/ef316163931a63e1e9655aed25cf8fa...
Author: Rémi Bernon rbernon@codeweavers.com Date: Wed Sep 27 08:24:58 2023 +0200
winebus: Append is_gamepad to the device instance id.
---
dlls/winebus.sys/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/winebus.sys/main.c b/dlls/winebus.sys/main.c index e5adfed8611..be635632e80 100644 --- a/dlls/winebus.sys/main.c +++ b/dlls/winebus.sys/main.c @@ -189,7 +189,10 @@ static WCHAR *get_instance_id(DEVICE_OBJECT *device) WCHAR *dst;
if ((dst = ExAllocatePool(PagedPool, len * sizeof(WCHAR)))) - swprintf(dst, len, L"%i&%s&%x&%i", ext->desc.version, ext->desc.serialnumber, ext->desc.uid, ext->index); + { + swprintf(dst, len, L"%u&%s&%x&%u&%u", ext->desc.version, ext->desc.serialnumber, + ext->desc.uid, ext->index, ext->desc.is_gamepad); + }
return dst; }