Module: wine Branch: master Commit: b1b92046c241f637a6b600428fcbf89336eee59d URL: http://source.winehq.org/git/wine.git/?a=commit;h=b1b92046c241f637a6b600428f...
Author: Thomas Faber thomas.faber@reactos.org Date: Tue Mar 25 10:51:34 2014 +0100
shell32: Avoid a variable-length array.
---
dlls/shell32/shlview_cmenu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/shell32/shlview_cmenu.c b/dlls/shell32/shlview_cmenu.c index 0705948..8170011 100644 --- a/dlls/shell32/shlview_cmenu.c +++ b/dlls/shell32/shlview_cmenu.c @@ -285,9 +285,10 @@ static BOOL CALLBACK Properties_AddPropSheetCallback(HPROPSHEETPAGE hpage, LPARA return TRUE; }
+#define MAX_PROP_PAGES 99 + static void DoOpenProperties(ContextMenu *This, HWND hwnd) { - static const UINT MAX_PROP_PAGES = 99; static const WCHAR wszFolder[] = {'F','o','l','d','e','r', 0}; static const WCHAR wszFiletypeAll[] = {'*',0}; LPSHELLFOLDER lpDesktopSF;