Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
1abafbff
Commit
1abafbff
authored
Jan 27, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use CoTaskMem* when dealing with CUSTDATA.
parent
dcdfb7d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
typelib.c
dlls/oleaut32/typelib.c
+2
-3
No files found.
dlls/oleaut32/typelib.c
View file @
1abafbff
...
...
@@ -5343,7 +5343,7 @@ static HRESULT TLB_copy_all_custdata(struct list *custdata_list, CUSTDATA *pCust
ct
=
list_count
(
custdata_list
);
pCustData
->
prgCustData
=
heap_alloc_zero
(
ct
*
sizeof
(
CUSTDATAITEM
));
pCustData
->
prgCustData
=
CoTaskMemAlloc
(
ct
*
sizeof
(
CUSTDATAITEM
));
if
(
!
pCustData
->
prgCustData
)
return
E_OUTOFMEMORY
;
...
...
@@ -11230,8 +11230,7 @@ void WINAPI ClearCustData(CUSTDATA *lpCust)
for
(
i
=
0
;
i
<
lpCust
->
cCustData
;
i
++
)
VariantClear
(
&
lpCust
->
prgCustData
[
i
].
varValue
);
/* FIXME - Should be using a per-thread IMalloc */
heap_free
(
lpCust
->
prgCustData
);
CoTaskMemFree
(
lpCust
->
prgCustData
);
lpCust
->
prgCustData
=
NULL
;
}
lpCust
->
cCustData
=
0
;
...
...
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