mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1167693 - Ensure device and vendor IDs are zero-padded. r=mstange
This commit is contained in:
parent
4b0b1f9e36
commit
4c81fbcf0e
@ -88,12 +88,12 @@ GfxInfo::GetDeviceInfo()
|
||||
io_registry_entry_t dsp_port = CGDisplayIOServicePort(kCGDirectMainDisplay);
|
||||
CFTypeRef vendor_id_ref = SearchPortForProperty(dsp_port, CFSTR("vendor-id"));
|
||||
if (vendor_id_ref) {
|
||||
mAdapterVendorID.AppendPrintf("0x%4x", IntValueOfCFData((CFDataRef)vendor_id_ref));
|
||||
mAdapterVendorID.AppendPrintf("0x%04x", IntValueOfCFData((CFDataRef)vendor_id_ref));
|
||||
CFRelease(vendor_id_ref);
|
||||
}
|
||||
CFTypeRef device_id_ref = SearchPortForProperty(dsp_port, CFSTR("device-id"));
|
||||
if (device_id_ref) {
|
||||
mAdapterDeviceID.AppendPrintf("0x%4x", IntValueOfCFData((CFDataRef)device_id_ref));
|
||||
mAdapterDeviceID.AppendPrintf("0x%04x", IntValueOfCFData((CFDataRef)device_id_ref));
|
||||
CFRelease(device_id_ref);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user