Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
2dac8052
Commit
2dac8052
authored
Oct 04, 2020
by
Sven Baars
Committed by
Alexandre Julliard
Oct 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix a leak on error path (Coverity).
Signed-off-by:
Sven Baars
<
sbaars@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
94b2db85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+4
-1
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
2dac8052
...
...
@@ -1251,7 +1251,10 @@ static HRESULT WINAPI ShellFolder2_GetDisplayNameOf(IShellFolder2* iface,
LPWSTR
pwszDosFileName
=
wine_get_dos_file_name
(
This
->
m_pszPath
);
if
(
!
pwszDosFileName
)
return
HRESULT_FROM_WIN32
(
GetLastError
());
lpName
->
u
.
pOleStr
=
SHAlloc
((
lstrlenW
(
pwszDosFileName
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
lpName
->
u
.
pOleStr
)
return
HRESULT_FROM_WIN32
(
GetLastError
());
if
(
!
lpName
->
u
.
pOleStr
)
{
heap_free
(
pwszDosFileName
);
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
lstrcpyW
(
lpName
->
u
.
pOleStr
,
pwszDosFileName
);
PathRemoveBackslashW
(
lpName
->
u
.
pOleStr
);
heap_free
(
pwszDosFileName
);
...
...
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