Whoops, fix deviceCount.
This commit is contained in:
parent
c640e5c480
commit
4705c3e59a
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue