forked from Mirrors/wine-wine
shell32: Release the returned imagelist.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
edb760097c
commit
826871ba95
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include "wine/debug.h"
|
||||
#include "undocshell.h"
|
||||
#include "commoncontrols.h"
|
||||
#include "pidl.h"
|
||||
#include "shell32_main.h"
|
||||
#include "shellapi.h"
|
||||
|
@ -282,7 +283,10 @@ static void InitializeTreeView( browse_info *info )
|
|||
static int GetIcon(LPCITEMIDLIST lpi, UINT uFlags)
|
||||
{
|
||||
SHFILEINFOW sfi;
|
||||
SHGetFileInfoW((LPCWSTR)lpi, 0 ,&sfi, sizeof(SHFILEINFOW), uFlags);
|
||||
IImageList *list;
|
||||
|
||||
list = (IImageList *)SHGetFileInfoW((LPCWSTR)lpi, 0 ,&sfi, sizeof(SHFILEINFOW), uFlags);
|
||||
if (list) IImageList_Release(list);
|
||||
return sfi.iIcon;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue