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