Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win32: fix menu click failure caused by excessive menu-data updates
basically a copy of tsl0922/mpv-menu-plugin#77 if you have 200+ menu items and update `menu-data` about 400 times, clicking menu item will not execute any command, the reason is that the menu identifier greater than the max value of 16-bit unsigned integer. 1. make menu id always less than 0xF000 as 861908c7 said 2. old menu items are never reused, should delete by DeleteMenu() instead of RemoveMenu(), destroys the handle and frees the memory
- Loading branch information