Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
edb76009
Commit
edb76009
authored
Apr 25, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Apr 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorerframe: Release the returned imagelist.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6891b5a0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
nstc.c
dlls/explorerframe/nstc.c
+6
-1
No files found.
dlls/explorerframe/nstc.c
View file @
edb76009
...
@@ -28,6 +28,8 @@
...
@@ -28,6 +28,8 @@
#include "winbase.h"
#include "winbase.h"
#include "winuser.h"
#include "winuser.h"
#include "shellapi.h"
#include "shellapi.h"
#include "commctrl.h"
#include "commoncontrols.h"
#include "wine/list.h"
#include "wine/list.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
@@ -318,7 +320,10 @@ static int get_icon(LPCITEMIDLIST lpi, UINT extra_flags)
...
@@ -318,7 +320,10 @@ static int get_icon(LPCITEMIDLIST lpi, UINT extra_flags)
{
{
SHFILEINFOW
sfi
;
SHFILEINFOW
sfi
;
UINT
flags
=
SHGFI_PIDL
|
SHGFI_SYSICONINDEX
|
SHGFI_SMALLICON
;
UINT
flags
=
SHGFI_PIDL
|
SHGFI_SYSICONINDEX
|
SHGFI_SMALLICON
;
SHGetFileInfoW
((
LPCWSTR
)
lpi
,
0
,
&
sfi
,
sizeof
(
SHFILEINFOW
),
flags
|
extra_flags
);
IImageList
*
list
;
list
=
(
IImageList
*
)
SHGetFileInfoW
((
LPCWSTR
)
lpi
,
0
,
&
sfi
,
sizeof
(
SHFILEINFOW
),
flags
|
extra_flags
);
if
(
list
)
IImageList_Release
(
list
);
return
sfi
.
iIcon
;
return
sfi
.
iIcon
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment