Repository navigation
Commit f17d904
authored
[WIN32SS:NTUSER] Return NO_SELECTED_ITEM from NtUserMenuItemFromPoint() when no item is hit (reactos#9121)
Fix the bug, where `NtUserMenuItemFromPoint()` returned `cItems` instead of `NO_SELECTED_ITEM`
when no item is under the point (`mi` is never NULL on a miss), so `MenuItemFromPoint()` callers
could have indexed one past the menu array.1 parent ae0e4ee commit f17d904
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- win32ss/user/ntuser
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6348 | 6348 | | |
6349 | 6349 | | |
6350 | 6350 | | |
6351 | | - | |
| 6351 | + | |
6352 | 6352 | | |
6353 | 6353 | | |
6354 | 6354 | | |
| |||
0 commit comments