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
40966b36
Commit
40966b36
authored
Jun 05, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
Jun 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use the new typelib creation implementation.
parent
13195151
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
1 deletion
+59
-1
Makefile.in
dlls/oleaut32/Makefile.in
+0
-1
typelib.c
dlls/oleaut32/typelib.c
+59
-0
typelib2.c
dlls/oleaut32/typelib2.c
+0
-0
No files found.
dlls/oleaut32/Makefile.in
View file @
40966b36
...
...
@@ -17,7 +17,6 @@ C_SRCS = \
safearray.c
\
tmarshal.c
\
typelib.c
\
typelib2.c
\
usrmarshal.c
\
varformat.c
\
variant.c
\
...
...
dlls/oleaut32/typelib.c
View file @
40966b36
...
...
@@ -8339,6 +8339,35 @@ static const ITypeCompVtbl tcompvt =
ITypeComp_fnBindType
};
HRESULT
WINAPI
CreateTypeLib2
(
SYSKIND
syskind
,
LPCOLESTR
szFile
,
ICreateTypeLib2
**
ppctlib
)
{
ITypeLibImpl
*
This
;
HRESULT
hres
;
TRACE
(
"(%d,%s,%p)
\n
"
,
syskind
,
debugstr_w
(
szFile
),
ppctlib
);
if
(
!
szFile
)
return
E_INVALIDARG
;
This
=
TypeLibImpl_Constructor
();
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lcid
=
GetSystemDefaultLCID
();
This
->
syskind
=
syskind
;
This
->
path
=
heap_alloc
((
lstrlenW
(
szFile
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
This
->
path
)
{
ITypeLib2_Release
((
ITypeLib2
*
)
This
);
return
E_OUTOFMEMORY
;
}
lstrcpyW
(
This
->
path
,
szFile
);
hres
=
ITypeLib2_QueryInterface
((
ITypeLib2
*
)
This
,
&
IID_ICreateTypeLib2
,
(
LPVOID
*
)
ppctlib
);
ITypeLib2_Release
((
ITypeLib2
*
)
This
);
return
hres
;
}
static
HRESULT
WINAPI
ICreateTypeLib2_fnQueryInterface
(
ICreateTypeLib2
*
iface
,
REFIID
riid
,
void
**
object
)
{
...
...
@@ -10811,3 +10840,33 @@ static const ICreateTypeInfo2Vtbl CreateTypeInfo2Vtbl = {
ICreateTypeInfo2_fnInvalidate
,
ICreateTypeInfo2_fnSetName
};
/******************************************************************************
* ClearCustData (OLEAUT32.171)
*
* Clear a custom data type's data.
*
* PARAMS
* lpCust [I] The custom data type instance
*
* RETURNS
* Nothing.
*/
void
WINAPI
ClearCustData
(
CUSTDATA
*
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 */
heap_free
(
lpCust
->
prgCustData
);
lpCust
->
prgCustData
=
NULL
;
}
lpCust
->
cCustData
=
0
;
}
}
dlls/oleaut32/typelib2.c
deleted
100644 → 0
View file @
13195151
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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