From deee8aaec17fe841054cd5e8d4936e0279a3f47d Mon Sep 17 00:00:00 2001 From: Stanislav Motylkov Date: Fri, 26 Jan 2024 01:18:20 +0300 Subject: [PATCH] [REGEDIT] edit.c: Display bus number as signed (it can be -1) --- base/applications/regedit/edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/applications/regedit/edit.c b/base/applications/regedit/edit.c index ebcf410f67c..786eefc11b3 100644 --- a/base/applications/regedit/edit.c +++ b/base/applications/regedit/edit.c @@ -800,7 +800,7 @@ ParseResources(HWND hwnd) SetDlgItemTextW(hwnd, IDC_INTERFACETYPE, buffer); /* Busnumber */ - SetDlgItemInt(hwnd, IDC_BUSNUMBER, (UINT)pFullDescriptor->BusNumber, FALSE); + SetDlgItemInt(hwnd, IDC_BUSNUMBER, (UINT)pFullDescriptor->BusNumber, TRUE); /* Version */ SetDlgItemInt(hwnd, IDC_VERSION, (UINT)pPartialResourceList->Version, FALSE); @@ -1383,7 +1383,7 @@ AddRequirementsToList(HWND hwndDlg, HWND hwnd) GetInterfaceType(requirementsValueData->InterfaceType, buffer, 80); 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); }