GlobalShortcut_win: log product guid when adding a new DirectInput device.

Previously, we only logged the instance GUID, not the product GUID.

With this change, the log line when adding a new device contains both.
This commit is contained in:
Mikkel Krautz 2016-08-06 14:54:07 +02:00
parent 8bdfd7d6b2
commit d3aa65d986

View File

@ -547,12 +547,13 @@ BOOL GlobalShortcutWin::EnumDevicesCB(LPCDIDEVICEINSTANCE pdidi, LPVOID pContext
if (FAILED(hr = id->pDID->SetProperty(DIPROP_BUFFERSIZE, &dipdw.diph)))
qFatal("GlobalShortcutWin: SetProperty: %lx", hr);
qWarning("Adding device %s %s %s:%d type 0x%.8x",
qWarning("Adding device %s %s %s:%d type 0x%.8x guid product %s",
qPrintable(QUuid(id->guid).toString()),
qPrintable(name),
qPrintable(sname),
id->qhNames.count(),
pdidi->dwDevType);
pdidi->dwDevType,
qPrintable(id->vguidproduct.toString()));
cbgsw->qhInputDevices[id->guid] = id;
} else {