)]}'
{
  "commit": "66d3849974dbc93d8bad418dbf594b37c95416f9",
  "tree": "f8bbe81b605a55c93c6d0e1c75b0ce5f94c99b5b",
  "parents": [
    "f939c8aabaaa42739e294df12cbac9e6a87a708a"
  ],
  "author": {
    "name": "Mathias Hjärtström",
    "email": "mathias.hjartstrom@telia.com",
    "time": "Thu Mar 17 12:43:18 2022 +0100"
  },
  "committer": {
    "name": "Tormod Volden",
    "email": "debian.tormod@gmail.com",
    "time": "Sun Mar 20 09:50:38 2022 +0100"
  },
  "message": "windows: Fix product string retrieval on HID composite devices\n\nA HID composite device with three interfaces (e.g. keyboard and touch\nscreen built into one), with all three interfaces referencing their own\nnames in the interface descriptor, was reported to have an iProduct\nstring equal to the name of the last interface instead of the actual\nproduct name (e.g. \"TOUCH\" repeated twice instead of \"PRODUCT\" and\n\"TOUCH\").\n\nThis behavior differ from what for instance Microsoft USB Device Viewer\nwill report for the same device. This fix will make them report the same\nthing.\n\nUse HidD_GetIndexedString() instead of HidD_GetProductString(), as the\nlatter would otherwise return the name of the interface instead of the\niProduct string whenever the iInterface member of the\nUSB_INTERFACE_DESCRIPTOR structure for the interface is nonzero (see\nRemarks section in the Microsoft documentation of the HID API routines).\n\nCloses #1091\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9e6ccaa6ac984abc707bce24e9e2785b29596dbc",
      "old_mode": 33188,
      "old_path": "libusb/os/windows_winusb.c",
      "new_id": "1303707a45775700e14edf74778410fad1f8546b",
      "new_mode": 33188,
      "new_path": "libusb/os/windows_winusb.c"
    },
    {
      "type": "modify",
      "old_id": "346fcb8330c73836b21c53c7a92120621893be85",
      "old_mode": 33188,
      "old_path": "libusb/version_nano.h",
      "new_id": "42711705b59e665e731ef1353c30556ba57e7cba",
      "new_mode": 33188,
      "new_path": "libusb/version_nano.h"
    }
  ]
}
