mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Range checks
This commit is contained in:
parent
aae0b98cfe
commit
c1690cd3dc
1 changed files with 4 additions and 2 deletions
|
@ -126,14 +126,16 @@ void GenericListControl::HandleNotify(LPARAM lParam)
|
|||
if (mhdr->code == NM_DBLCLK)
|
||||
{
|
||||
LPNMITEMACTIVATE item = (LPNMITEMACTIVATE) lParam;
|
||||
OnDoubleClick(item->iItem,item->iSubItem);
|
||||
if (item->iItem != -1 && item->iItem < GetRowCount())
|
||||
OnDoubleClick(item->iItem,item->iSubItem);
|
||||
return;
|
||||
}
|
||||
|
||||
if (mhdr->code == NM_RCLICK)
|
||||
{
|
||||
const LPNMITEMACTIVATE item = (LPNMITEMACTIVATE)lParam;
|
||||
OnRightClick(item->iItem,item->iSubItem);
|
||||
if (item->iItem != -1 && item->iItem < GetRowCount())
|
||||
OnRightClick(item->iItem,item->iSubItem);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue