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
3f13a07b
Commit
3f13a07b
authored
Aug 20, 2010
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Implement ITypeInfo2::ReleaseFuncDesc.
parent
bd6bc3dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
typelib2.c
dlls/oleaut32/typelib2.c
+35
-1
No files found.
dlls/oleaut32/typelib2.c
View file @
3f13a07b
...
...
@@ -3540,6 +3540,19 @@ static HRESULT WINAPI ITypeInfo2_fnGetContainingTypeLib(
return
S_OK
;
}
static
void
release_typedesc
(
TYPEDESC
*
tdesc
)
{
while
(
tdesc
)
{
TYPEDESC
*
next
;
if
(
tdesc
->
vt
==
VT_USERDEFINED
)
next
=
NULL
;
else
next
=
tdesc
->
u
.
lptdesc
;
HeapFree
(
GetProcessHeap
(),
0
,
tdesc
);
tdesc
=
next
;
}
}
/******************************************************************************
* ITypeInfo2_ReleaseTypeAttr {OLEAUT32}
*
...
...
@@ -3563,7 +3576,28 @@ static void WINAPI ITypeInfo2_fnReleaseFuncDesc(
ITypeInfo2
*
iface
,
FUNCDESC
*
pFuncDesc
)
{
FIXME
(
"(%p,%p), stub!
\n
"
,
iface
,
pFuncDesc
);
int
i
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pFuncDesc
);
HeapFree
(
GetProcessHeap
(),
0
,
pFuncDesc
->
lprgscode
);
if
(
pFuncDesc
->
lprgelemdescParam
)
{
for
(
i
=
0
;
i
<
pFuncDesc
->
cParams
;
++
i
)
{
if
(
pFuncDesc
->
lprgelemdescParam
[
i
].
tdesc
.
vt
!=
VT_USERDEFINED
)
release_typedesc
(
pFuncDesc
->
lprgelemdescParam
[
i
].
tdesc
.
u
.
lptdesc
);
HeapFree
(
GetProcessHeap
(),
0
,
pFuncDesc
->
lprgelemdescParam
[
i
].
u
.
paramdesc
.
pparamdescex
);
}
HeapFree
(
GetProcessHeap
(),
0
,
pFuncDesc
->
lprgelemdescParam
);
}
HeapFree
(
GetProcessHeap
(),
0
,
pFuncDesc
->
elemdescFunc
.
u
.
paramdesc
.
pparamdescex
);
if
(
pFuncDesc
->
elemdescFunc
.
tdesc
.
vt
!=
VT_USERDEFINED
)
release_typedesc
(
pFuncDesc
->
elemdescFunc
.
tdesc
.
u
.
lptdesc
);
HeapFree
(
GetProcessHeap
(),
0
,
pFuncDesc
);
}
/******************************************************************************
...
...
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