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
b4b396a9
Commit
b4b396a9
authored
Oct 28, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Reorder code to avoid memory leaks (coverity).
parent
81c0e1ea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
brsfolder.c
dlls/shell32/brsfolder.c
+3
-3
pidl.c
dlls/shell32/pidl.c
+2
-1
shelldispatch.c
dlls/shell32/shelldispatch.c
+1
-1
shellpath.c
dlls/shell32/shellpath.c
+3
-0
No files found.
dlls/shell32/brsfolder.c
View file @
b4b396a9
...
...
@@ -369,11 +369,11 @@ static HTREEITEM InsertTreeViewItem( browse_info *info, IShellFolder * lpsf,
tvi
.
cChildren
=
pEnumIL
?
1
:
0
;
tvi
.
mask
|=
TVIF_CHILDREN
;
lptvid
=
SHAlloc
(
sizeof
(
TV_ITEMDATA
)
);
if
(
!
lptvid
)
if
(
!
GetName
(
lpsf
,
pidl
,
SHGDN_NORMAL
,
szBuff
))
return
NULL
;
if
(
!
GetName
(
lpsf
,
pidl
,
SHGDN_NORMAL
,
szBuff
))
lptvid
=
SHAlloc
(
sizeof
(
TV_ITEMDATA
)
);
if
(
!
lptvid
)
return
NULL
;
tvi
.
pszText
=
szBuff
;
...
...
dlls/shell32/pidl.c
View file @
b4b396a9
...
...
@@ -2503,10 +2503,11 @@ LPITEMIDLIST* _ILCopyaPidl(const LPCITEMIDLIST * apidlsrc, UINT cidl)
UINT
i
;
LPITEMIDLIST
*
apidldest
;
apidldest
=
SHAlloc
(
cidl
*
sizeof
(
LPITEMIDLIST
));
if
(
!
apidlsrc
)
return
NULL
;
apidldest
=
SHAlloc
(
cidl
*
sizeof
(
LPITEMIDLIST
));
for
(
i
=
0
;
i
<
cidl
;
i
++
)
apidldest
[
i
]
=
ILClone
(
apidlsrc
[
i
]);
...
...
dlls/shell32/shelldispatch.c
View file @
b4b396a9
...
...
@@ -1061,7 +1061,7 @@ static HRESULT WINAPI ShellDispatch_IsServiceRunning(IShellDispatch2 *iface, BST
if
(
!
service
)
{
ERR
(
"Failed to open service %s (%u)
\n
"
,
debugstr_w
(
name
),
GetLastError
());
CloseServiceHandle
(
s
ervice
);
CloseServiceHandle
(
s
cm
);
return
S_OK
;
}
...
...
dlls/shell32/shellpath.c
View file @
b4b396a9
...
...
@@ -3790,7 +3790,10 @@ static BOOL is_knownfolder( struct foldermanager *fm, const KNOWNFOLDERID *id )
hr
=
get_known_folder_registry_path
(
id
,
NULL
,
&
registryPath
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
HRESULT_FROM_WIN32
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
registryPath
,
0
,
0
,
&
hKey
));
HeapFree
(
GetProcessHeap
(),
0
,
registryPath
);
}
if
(
SUCCEEDED
(
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