mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +00:00
[SHELL32]
* Remove an obsolete hack that would only cause leaks now. svn path=/branches/shell-experiments/; revision=63892
This commit is contained in:
parent
10f8913d70
commit
1fefb70fd0
1 changed files with 1 additions and 9 deletions
|
@ -1684,21 +1684,13 @@ CDefFolderMenu_Create2(
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue