Author: dquintana Date: Fri Aug 15 10:59:23 2014 New Revision: 63892
URL: http://svn.reactos.org/svn/reactos?rev=63892&view=rev Log: [SHELL32] * Remove an obsolete hack that would only cause leaks now.
Modified: branches/shell-experiments/dll/win32/shell32/defcontextmenu.cpp
Modified: branches/shell-experiments/dll/win32/shell32/defcontextmenu.cpp URL: http://svn.reactos.org/svn/reactos/branches/shell-experiments/dll/win32/shel... ============================================================================== --- branches/shell-experiments/dll/win32/shell32/defcontextmenu.cpp [iso-8859-1] (original) +++ branches/shell-experiments/dll/win32/shell32/defcontextmenu.cpp [iso-8859-1] Fri Aug 15 10:59:23 2014 @@ -1684,21 +1684,13 @@ const HKEY *ahkeyClsKeys, IContextMenu **ppcm) { - // FIXME: This needs to be freed somewhere (like in the destructor of the context menu) - LPCITEMIDLIST *apidl2 = (LPCITEMIDLIST *) SHAlloc(sizeof(LPCITEMIDLIST) * cidl); - - for (int i = 0; i < (int)cidl; i++) - { - apidl2[i] = apidl[i]; - } - DEFCONTEXTMENU pdcm; pdcm.hwnd = hwnd; pdcm.pcmcb = NULL; pdcm.pidlFolder = pidlFolder; pdcm.psf = psf; pdcm.cidl = cidl; - pdcm.apidl = apidl2; + pdcm.apidl = apidl; pdcm.punkAssociationInfo = NULL; pdcm.cKeys = nKeys; pdcm.aKeys = ahkeyClsKeys;