Skip to content

Commit 6c38551

Browse files
FE/VBoxManage: Fix parsing the new PCI address format, bugref:11054
svn:sync-xref-src-repo-rev: r173206
1 parent c773759 commit 6c38551

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: VBoxManageModifyVM.cpp 113443 2026-03-17 09:26:07Z alexander.eichner@oracle.com $ */
1+
/* $Id: VBoxManageModifyVM.cpp 113452 2026-03-18 09:22:21Z alexander.eichner@oracle.com $ */
22
/** @file
33
* VBoxManage - Implementation of modifyvm command.
44
*/
@@ -589,15 +589,15 @@ static uint32_t parsePci(const char *pszPciAddr)
589589
if (RT_FAILURE(vrc) || pszNext == NULL || *pszNext != ':')
590590
return UINT32_MAX;
591591

592-
vrc = RTStrToUInt8Ex(pszNext, &pszNext, 16, &aVals[0]);
592+
vrc = RTStrToUInt8Ex(pszNext + 1, &pszNext, 16, &aVals[0]);
593593
if (RT_FAILURE(vrc) || pszNext == NULL || *pszNext != ':')
594594
return UINT32_MAX;
595595

596-
vrc = RTStrToUInt8Ex(pszNext+1, &pszNext, 16, &aVals[1]);
596+
vrc = RTStrToUInt8Ex(pszNext + 1, &pszNext, 16, &aVals[1]);
597597
if (RT_FAILURE(vrc) || pszNext == NULL || *pszNext != '.')
598598
return UINT32_MAX;
599599

600-
vrc = RTStrToUInt8Ex(pszNext+1, &pszNext, 16, &aVals[2]);
600+
vrc = RTStrToUInt8Ex(pszNext + 1, &pszNext, 16, &aVals[2]);
601601
if (RT_FAILURE(vrc) || pszNext == NULL)
602602
return UINT32_MAX;
603603

0 commit comments

Comments
 (0)