[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: [PATCH] shell32: set size in characters in MENUITEMINFOW struct
From: Marcus Meissner <meissner () suse ! de>
Date: 2018-06-29 15:23:26
Message-ID: 20180629152326.25511-1-meissner () suse ! de
[Download RAW message or body]
Signed-off-by: Marcus Meissner <meissner@suse.de>
---
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 4548bf32f8..40306d6ba4 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 );
--
2.17.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic