Whoops, fix deviceCount.

This commit is contained in:
Jules.A 2018-11-01 21:47:15 +08:00
parent c640e5c480
commit 4705c3e59a
1 changed files with 7 additions and 1 deletions

View File

@ -6209,6 +6209,7 @@ LRESULT CALLBACK MicrophoneSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam,
LRESULT CALLBACK WifiSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
const bool isPCapSupported = wifiHandler->IsPCapSupported();
const WifiEmulationLevel emulationLevel = wifiHandler->GetSelectedEmulationLevel();
switch(uMsg)
@ -6242,7 +6243,12 @@ LRESULT CALLBACK WifiSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM
{
ComboBox_DeleteString(deviceMenu, 0);
}
if (isPCapSupported)
{
deviceCount = wifiHandler->GetBridgeDeviceList(&deviceStringList);
}
if (deviceCount < 0)
{
ComboBox_AddString(deviceMenu, "Error: Cannot find any devices.");