From aecf1530164190521543f1b9311617e6ff0c43f1 Mon Sep 17 00:00:00 2001 From: "Jules.A" Date: Fri, 2 Nov 2018 10:18:27 +0800 Subject: [PATCH] Fix wrong bool type, attempt to make warnings more clear. --- desmume/src/frontend/windows/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desmume/src/frontend/windows/main.cpp b/desmume/src/frontend/windows/main.cpp index de923e7c3..d1868c499 100755 --- a/desmume/src/frontend/windows/main.cpp +++ b/desmume/src/frontend/windows/main.cpp @@ -6238,7 +6238,7 @@ LRESULT CALLBACK WifiSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM int menuItemCount = ComboBox_GetCount(deviceMenu); std::vector deviceStringList; int curSel = 0; - bool enableWin = false; + BOOL enableWin = FALSE; for (int i = 0; i < menuItemCount; i++) { @@ -6251,11 +6251,11 @@ LRESULT CALLBACK WifiSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM if (deviceCount < 0) { - ComboBox_AddString(deviceMenu, "Error: Cannot find any devices."); + ComboBox_AddString(deviceMenu, "Error: Searching for a device failed."); } else if (deviceCount == 0) { - ComboBox_AddString(deviceMenu, "No devices found."); + ComboBox_AddString(deviceMenu, "No devices were found."); } else { @@ -6264,7 +6264,7 @@ LRESULT CALLBACK WifiSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM ComboBox_AddString(deviceMenu, deviceStringList[i].c_str()); } curSel = CommonSettings.wifi.infraBridgeAdapter; - enableWin = true; + enableWin = TRUE; } } else