sonicretro / KENSSharp

KENSSharp: Compression and decompression library
http://segaretro.org/KENSSharp
GNU Lesser General Public License v3.0
13 stars 6 forks source link

Selecting multiple files in the shell extension causes strange behaviour #3

Open Clownacy opened 5 years ago

Clownacy commented 5 years ago

For now, I've worked around this in db908a7a4fbefa9ac406d44ff46c9d72dfaf2221, but I want a real fix. For whatever reason, whenever you select a bunch of files, and try (de)compressing them, Windows calls InvokeCommand with the wrong command ID.

What triggers it is having two options with the same name. Yes this happens even if the two options are in separate submenus.

And this only happens when a bunch of files are selected. It has something to do with that dumb change Microsoft made in Window 7(?) where QueryContextMenu is called twice when more than 16(?) files are selected, the first call clipping the file count to 16, and the second call using the real number.

Also see MainMemory/FW-KENSC-ShellExt#5.