Nit: GetBridgeDeviceList already has proper return codes so just initialize variable locally.

This commit is contained in:
Jules.A 2018-11-02 09:19:55 +08:00
parent 36040e90a3
commit b6c69b031f
1 changed files with 1 additions and 2 deletions

View File

@ -6236,7 +6236,6 @@ LRESULT CALLBACK WifiSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM
HWND deviceMenu = GetDlgItem(hDlg, IDC_BRIDGEADAPTER);
int menuItemCount = ComboBox_GetCount(deviceMenu);
int deviceCount = -1;
std::vector<std::string> deviceStringList;
int curSel = 0;
bool enableWin = false;
@ -6248,7 +6247,7 @@ LRESULT CALLBACK WifiSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM
if (isPCapSupported)
{
deviceCount = wifiHandler->GetBridgeDeviceList(&deviceStringList);
int deviceCount = wifiHandler->GetBridgeDeviceList(&deviceStringList);
if (deviceCount <= 0)
{