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
7ca31b81
Commit
7ca31b81
authored
Jun 27, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix memory leak on NULL return length (Coverity).
parent
64456de7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
assoc.c
dlls/shell32/assoc.c
+3
-5
No files found.
dlls/shell32/assoc.c
View file @
7ca31b81
...
...
@@ -745,7 +745,7 @@ static HRESULT WINAPI IQueryAssociations_fnGetData(IQueryAssociations *iface,
static
const
WCHAR
edit_flags
[]
=
{
'E'
,
'd'
,
'i'
,
't'
,
'F'
,
'l'
,
'a'
,
'g'
,
's'
,
0
};
IQueryAssociationsImpl
*
This
=
impl_from_IQueryAssociations
(
iface
);
void
*
data
;
void
*
data
=
NULL
;
DWORD
size
;
HRESULT
hres
;
...
...
@@ -761,10 +761,8 @@ static HRESULT WINAPI IQueryAssociations_fnGetData(IQueryAssociations *iface,
return
HRESULT_FROM_WIN32
(
ERROR_NO_ASSOCIATION
);
hres
=
ASSOC_GetValue
(
This
->
hkeyProgID
,
edit_flags
,
&
data
,
&
size
);
if
(
FAILED
(
hres
)
||
!
pcbOut
)
return
hres
;
hres
=
ASSOC_ReturnData
(
pvOut
,
pcbOut
,
data
,
size
);
if
(
SUCCEEDED
(
hres
)
&&
pcbOut
)
hres
=
ASSOC_ReturnData
(
pvOut
,
pcbOut
,
data
,
size
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
return
hres
;
default:
...
...
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