Commit 43f8da3
fix: pass correct menu item index in WM_INITMENUPOPUP lParam for submenus
Previously, WM_INITMENUPOPUP was sent with lParam=0xFFFFFFFF for all
submenus, which tells the context menu handler that the menu position
is unknown. This caused the SendTo shell extension to fail to properly
identify the submenu, resulting in it enumerating the wrong directory
(user home directory instead of the SendTo folder).
Now we pass the actual menu item index as the low-order word of lParam,
allowing context menu handlers to correctly identify which submenu is
being initialized.1 parent 033ee34 commit 43f8da3
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
184 | | - | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
0 commit comments