mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Small warning fixes in Windows UI.
This commit is contained in:
parent
40e3e8e930
commit
606e2f2802
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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] = '_';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user