diff options
Diffstat (limited to 'plugins/CountryFlags')
-rw-r--r-- | plugins/CountryFlags/src/icons.cpp | 1 | ||||
-rw-r--r-- | plugins/CountryFlags/src/ip2country.cpp | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/plugins/CountryFlags/src/icons.cpp b/plugins/CountryFlags/src/icons.cpp index 93354139ae..6471ab79db 100644 --- a/plugins/CountryFlags/src/icons.cpp +++ b/plugins/CountryFlags/src/icons.cpp @@ -208,7 +208,6 @@ static INT_PTR ServiceCreateMergedFlagIcon(WPARAM wParam,LPARAM lParam) DrawIconEx(hdc,0,0,hUpperIcon,bm.bmWidth,bm.bmHeight,0,NULL,DI_NOMIRROR|DI_MASK);
SelectObject(hdc,hbmPrev);
}
- DeleteObject(hrgn);
}
DeleteDC(hdc);
}
diff --git a/plugins/CountryFlags/src/ip2country.cpp b/plugins/CountryFlags/src/ip2country.cpp index ceaaefbb3b..803e8baa72 100644 --- a/plugins/CountryFlags/src/ip2country.cpp +++ b/plugins/CountryFlags/src/ip2country.cpp @@ -110,8 +110,6 @@ INT_PTR ServiceIpToCountry(WPARAM wParam,LPARAM lParam) if (wParam>=dwFrom) /* only search if wParam valid */
while (low<=high) {
i=low+((high-low)/2);
- /* never happens */
- if (i<0) DebugBreak();
/* analyze record */
id=GetDataRecord(data,i,&dwFrom,&dwTo);
if (dwFrom<=wParam && dwTo>=wParam) { LeaveRecordCache(); return id; }
|