From b6c69b031fff302db760c1a96aa4f45b32f854dd Mon Sep 17 00:00:00 2001 From: "Jules.A" Date: Fri, 2 Nov 2018 09:19:55 +0800 Subject: [PATCH] Nit: GetBridgeDeviceList already has proper return codes so just initialize variable locally. --- desmume/src/frontend/windows/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desmume/src/frontend/windows/main.cpp b/desmume/src/frontend/windows/main.cpp index 0b88398a7..587461e4a 100755 --- a/desmume/src/frontend/windows/main.cpp +++ b/desmume/src/frontend/windows/main.cpp @@ -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 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) {