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
4b317fde
Commit
4b317fde
authored
Jan 15, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix a cloned PIDL leak (Valgrind).
parent
38a99502
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+2
-3
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
4b317fde
...
@@ -1022,7 +1022,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_CompareIDs(IShellFolder2* iface,
...
@@ -1022,7 +1022,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_CompareIDs(IShellFolder2* iface,
{
{
BOOL
isEmpty1
,
isEmpty2
;
BOOL
isEmpty1
,
isEmpty2
;
HRESULT
hr
=
E_FAIL
;
HRESULT
hr
=
E_FAIL
;
LPITEMIDLIST
firstpidl
;
LP
C
ITEMIDLIST
firstpidl
;
IShellFolder2
*
psf
;
IShellFolder2
*
psf
;
int
compare
;
int
compare
;
...
@@ -1055,7 +1055,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_CompareIDs(IShellFolder2* iface,
...
@@ -1055,7 +1055,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_CompareIDs(IShellFolder2* iface,
else
if
(
pidl1
->
mkid
.
cb
>
pidl2
->
mkid
.
cb
)
else
if
(
pidl1
->
mkid
.
cb
>
pidl2
->
mkid
.
cb
)
return
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
0
,
(
WORD
)
1
);
return
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
0
,
(
WORD
)
1
);
firstpidl
=
ILCloneFirst
(
pidl1
)
;
firstpidl
=
pidl1
;
pidl1
=
ILGetNext
(
pidl1
);
pidl1
=
ILGetNext
(
pidl1
);
pidl2
=
ILGetNext
(
pidl2
);
pidl2
=
ILGetNext
(
pidl2
);
...
@@ -1073,7 +1073,6 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_CompareIDs(IShellFolder2* iface,
...
@@ -1073,7 +1073,6 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_CompareIDs(IShellFolder2* iface,
IShellFolder2_Release
(
psf
);
IShellFolder2_Release
(
psf
);
}
}
ILFree
(
firstpidl
);
return
hr
;
return
hr
;
}
}
...
...
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