Marcus Meissner : shell32: Set size in characters in MENUITEMINFOW struct.
Module: wine Branch: master Commit: aba4789b0eface4636a723dacfdee19124248ab6 URL: https://source.winehq.org/git/wine.git/?a=commit;h=aba4789b0eface4636a723dac... Author: Marcus Meissner <meissner(a)suse.de> Date: Fri Jun 29 17:23:26 2018 +0200 shell32: Set size in characters in MENUITEMINFOW struct. Signed-off-by: Marcus Meissner <meissner(a)suse.de> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/shell32/shlexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c index 4548bf3..40306d6 100644 --- a/dlls/shell32/shlexec.c +++ b/dlls/shell32/shlexec.c @@ -1236,7 +1236,7 @@ static HRESULT shellex_run_context_menu_default( IShellExtInit *obj, info.cbSize = sizeof info; info.fMask = MIIM_FTYPE | MIIM_STRING | MIIM_STATE | MIIM_DATA | MIIM_ID; info.dwTypeData = string; - info.cch = sizeof string; + info.cch = ARRAY_SIZE(string); string[0] = 0; GetMenuItemInfoW( hmenu, i, TRUE, &info );
participants (1)
-
Alexandre Julliard