|
@@ -813,7 +813,11 @@ namespace Global
|
|
|
HANDLE hDeviceFile;
|
|
|
BOOL isOK = FALSE;
|
|
|
if (_tcsnicmp(DeviceInterfaceDetailData->DevicePath + 4, TEXT("pci"), 3) != 0)
|
|
|
+ {
|
|
|
+ free(DeviceInterfaceDetailData);
|
|
|
+ DeviceInterfaceDetailData = NULL;
|
|
|
continue;
|
|
|
+ }
|
|
|
|
|
|
MacAddress tagMacAddress;
|
|
|
tagMacAddress.nNICKind = NIC_PCI;
|
|
@@ -855,6 +859,7 @@ namespace Global
|
|
|
}
|
|
|
|
|
|
free(DeviceInterfaceDetailData);
|
|
|
+ DeviceInterfaceDetailData = NULL;
|
|
|
}
|
|
|
|
|
|
SetupDiDestroyDeviceInfoList(hDevInfo);
|