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
3547ea01
Commit
3547ea01
authored
Dec 29, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix a potentially large memory leak in IQueryAssociations_fnGetString.
parent
16f4b563
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
assoc.c
dlls/shell32/assoc.c
+6
-2
No files found.
dlls/shell32/assoc.c
View file @
3547ea01
...
@@ -505,7 +505,9 @@ static HRESULT WINAPI IQueryAssociations_fnGetString(
...
@@ -505,7 +505,9 @@ static HRESULT WINAPI IQueryAssociations_fnGetString(
/* Does strlenW(bufW) == 0 mean we use the filename? */
/* Does strlenW(bufW) == 0 mean we use the filename? */
len
=
strlenW
(
bufW
)
+
1
;
len
=
strlenW
(
bufW
)
+
1
;
TRACE
(
"found FileDescription: %s
\n
"
,
debugstr_w
(
bufW
));
TRACE
(
"found FileDescription: %s
\n
"
,
debugstr_w
(
bufW
));
return
ASSOC_ReturnData
(
pszOut
,
pcchOut
,
bufW
,
len
);
hr
=
ASSOC_ReturnData
(
pszOut
,
pcchOut
,
bufW
,
len
);
HeapFree
(
GetProcessHeap
(),
0
,
verinfoW
);
return
hr
;
}
}
}
}
}
}
...
@@ -513,7 +515,9 @@ get_friendly_name_fail:
...
@@ -513,7 +515,9 @@ get_friendly_name_fail:
PathRemoveExtensionW
(
path
);
PathRemoveExtensionW
(
path
);
PathStripPathW
(
path
);
PathStripPathW
(
path
);
TRACE
(
"using filename: %s
\n
"
,
debugstr_w
(
path
));
TRACE
(
"using filename: %s
\n
"
,
debugstr_w
(
path
));
return
ASSOC_ReturnData
(
pszOut
,
pcchOut
,
path
,
strlenW
(
path
)
+
1
);
hr
=
ASSOC_ReturnData
(
pszOut
,
pcchOut
,
path
,
strlenW
(
path
)
+
1
);
HeapFree
(
GetProcessHeap
(),
0
,
verinfoW
);
return
hr
;
}
}
case
ASSOCSTR_CONTENTTYPE
:
case
ASSOCSTR_CONTENTTYPE
:
...
...
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