Skip to content

Commit

Permalink
winebus.sys: Append is_gamepad to the device instance id.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbernon authored and bylaws committed Sep 6, 2024
1 parent 0ae7963 commit 2568a24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dlls/winebus.sys/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,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;
}
Expand Down

0 comments on commit 2568a24

Please sign in to comment.