[REGEDIT] edit.c: Display bus number as signed (it can be -1)

This commit is contained in:
Stanislav Motylkov 2024-01-26 01:18:20 +03:00
parent c9985e48d3
commit deee8aaec1

View File

@ -800,7 +800,7 @@ ParseResources(HWND hwnd)
SetDlgItemTextW(hwnd, IDC_INTERFACETYPE, buffer); SetDlgItemTextW(hwnd, IDC_INTERFACETYPE, buffer);
/* Busnumber */ /* Busnumber */
SetDlgItemInt(hwnd, IDC_BUSNUMBER, (UINT)pFullDescriptor->BusNumber, FALSE); SetDlgItemInt(hwnd, IDC_BUSNUMBER, (UINT)pFullDescriptor->BusNumber, TRUE);
/* Version */ /* Version */
SetDlgItemInt(hwnd, IDC_VERSION, (UINT)pPartialResourceList->Version, FALSE); SetDlgItemInt(hwnd, IDC_VERSION, (UINT)pPartialResourceList->Version, FALSE);
@ -1383,7 +1383,7 @@ AddRequirementsToList(HWND hwndDlg, HWND hwnd)
GetInterfaceType(requirementsValueData->InterfaceType, buffer, 80); GetInterfaceType(requirementsValueData->InterfaceType, buffer, 80);
SetDlgItemTextW(hwndDlg, IDC_REQINTERFACETYPE, buffer); SetDlgItemTextW(hwndDlg, IDC_REQINTERFACETYPE, buffer);
SetDlgItemInt(hwndDlg, IDC_REQBUSNUMBER, (UINT)requirementsValueData->BusNumber, FALSE); SetDlgItemInt(hwndDlg, IDC_REQBUSNUMBER, (UINT)requirementsValueData->BusNumber, TRUE);
SetDlgItemInt(hwndDlg, IDC_REQSLOTNUMBER, (UINT)requirementsValueData->SlotNumber, FALSE); SetDlgItemInt(hwndDlg, IDC_REQSLOTNUMBER, (UINT)requirementsValueData->SlotNumber, FALSE);
} }