gqa-win: get_pci_info: Replace 'while' with 2 calls of the function
authorKostiantyn Kostiuk <konstantin@daynix.com>
Wed, 8 Dec 2021 12:14:32 +0000 (12:14 +0000)
committerKostiantyn Kostiuk <konstantin@daynix.com>
Mon, 10 Jan 2022 13:04:53 +0000 (13:04 +0000)
commitd919cea07c5e3506c3df7389f8d620b08c54b033
tree0d2c5cdbc0a20ac87df05071f5dc313ed9fe053f
parent5f22473ebb6889dab79bd0a649b9de35ad075136
gqa-win: get_pci_info: Replace 'while' with 2 calls of the function

Microsoft suggests this solution in the documentation:
https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetdeviceinterfacedetaila

Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
qga/commands-win32.c