Small warning fixes in Windows UI.

This commit is contained in:
Unknown W. Brackets 2013-09-14 07:44:01 -07:00
parent 40e3e8e930
commit 606e2f2802
3 changed files with 5 additions and 5 deletions

View File

@ -173,7 +173,7 @@ bool BreakpointWindow::fetchDialogData(HWND hwnd)
bool BreakpointWindow::exec()
{
bp = this;
bool result = (bool) DialogBoxParam(GetModuleHandle(0),MAKEINTRESOURCE(IDD_BREAKPOINT),parentHwnd,dlgFunc,(LPARAM)this);
bool result = DialogBoxParam(GetModuleHandle(0),MAKEINTRESOURCE(IDD_BREAKPOINT),parentHwnd,dlgFunc,(LPARAM)this) != 0;
return result;
}

View File

@ -600,13 +600,13 @@ void CtrlMemView::search(bool continueSearch)
std::vector<u8> searchData;
if (asciiSelected)
{
for (int i = 0; i < searchQuery.length(); i++)
for (size_t i = 0; i < searchQuery.length(); i++)
{
char c = searchQuery[i];
searchData.push_back(c);
}
} else {
int index = 0;
size_t index = 0;
while (index < searchQuery.size())
{
if (searchQuery[index] == ' ' || searchQuery[index] == '\t')
@ -641,7 +641,7 @@ void CtrlMemView::search(bool continueSearch)
searching = true;
redraw(); // so the cursor is disabled
for (int i = 0; i < memoryAreas.size(); i++)
for (size_t i = 0; i < memoryAreas.size(); i++)
{
u32 segmentStart = memoryAreas[i].first;
u32 segmentEnd = memoryAreas[i].second;

View File

@ -129,7 +129,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
// Really should find a way to do this in XP too :/
if (0 != GetLocaleInfo(LOCALE_NAME_USER_DEFAULT, LOCALE_SNAME, lcCountry, 256)) {
langRegion = ConvertWStringToUTF8(lcCountry);
for (int i = 0; i < langRegion.size(); i++) {
for (size_t i = 0; i < langRegion.size(); i++) {
if (langRegion[i] == '-')
langRegion[i] = '_';
}