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
0c93b1f0
Commit
0c93b1f0
authored
Apr 23, 2004
by
Jon Griffiths
Committed by
Alexandre Julliard
Apr 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement ClearCustData.
parent
17ac230b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
oleaut32.spec
dlls/oleaut32/oleaut32.spec
+1
-1
typelib2.c
dlls/oleaut32/typelib2.c
+30
-0
No files found.
dlls/oleaut32/oleaut32.spec
View file @
0c93b1f0
...
...
@@ -166,7 +166,7 @@
168 stdcall VarAbs(ptr ptr)
169 stdcall VarFix(ptr ptr)
170 stdcall OaBuildVersion()
171 st
ub ClearCustData
171 st
dcall ClearCustData(ptr)
172 stdcall VarInt(ptr ptr)
173 stdcall VarNeg(ptr ptr)
174 stdcall VarNot(ptr ptr)
...
...
dlls/oleaut32/typelib2.c
View file @
0c93b1f0
...
...
@@ -3879,3 +3879,33 @@ HRESULT WINAPI CreateTypeLib2(
*
ppctlib
=
ICreateTypeLib2_Constructor
(
syskind
,
szFile
);
return
(
*
ppctlib
)
?
S_OK
:
E_OUTOFMEMORY
;
}
/******************************************************************************
* ClearCustData (OLEAUT32.171)
*
* Clear a custom data types' data.
*
* PARAMS
* lpCust [I] The custom data type instance
*
* RETURNS
* Nothing.
*/
void
WINAPI
ClearCustData
(
LPCUSTDATA
lpCust
)
{
if
(
lpCust
&&
lpCust
->
cCustData
)
{
if
(
lpCust
->
prgCustData
)
{
DWORD
i
;
for
(
i
=
0
;
i
<
lpCust
->
cCustData
;
i
++
)
VariantClear
(
&
lpCust
->
prgCustData
[
i
].
varValue
);
/* FIXME - Should be using a per-thread IMalloc */
HeapFree
(
GetProcessHeap
(),
0
,
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