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
02a2a6d9
Commit
02a2a6d9
authored
May 29, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
May 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Implement ICreateTypeInfo::SetCustData.
parent
92b9304a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
2 deletions
+41
-2
typelib.c
dlls/oleaut32/typelib.c
+41
-2
No files found.
dlls/oleaut32/typelib.c
View file @
02a2a6d9
...
...
@@ -1739,6 +1739,40 @@ static TLBImplType *TLBImplType_Alloc(UINT n)
return
ret
;
}
static
HRESULT
TLB_set_custdata
(
struct
list
*
custdata_list
,
REFGUID
guid
,
VARIANT
*
var
)
{
TLBCustData
*
cust_data
;
switch
(
V_VT
(
var
)){
case
VT_I4
:
case
VT_R4
:
case
VT_UI4
:
case
VT_INT
:
case
VT_UINT
:
case
VT_HRESULT
:
case
VT_BSTR
:
break
;
default:
return
DISP_E_BADVARTYPE
;
}
cust_data
=
TLB_get_custdata_by_guid
(
custdata_list
,
guid
);
if
(
!
cust_data
)
{
cust_data
=
heap_alloc
(
sizeof
(
TLBCustData
));
if
(
!
cust_data
)
return
E_OUTOFMEMORY
;
cust_data
->
guid
=
*
guid
;
VariantInit
(
&
cust_data
->
data
);
list_add_tail
(
custdata_list
,
&
cust_data
->
entry
);
}
else
VariantClear
(
&
cust_data
->
data
);
return
VariantCopy
(
&
cust_data
->
data
,
var
);
}
/**********************************************************************
*
* Functions for reading MSFT typelibs (those created by CreateTypeLib2)
...
...
@@ -9031,8 +9065,13 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetCustData(ICreateTypeInfo2 *iface,
REFGUID
guid
,
VARIANT
*
varVal
)
{
ITypeInfoImpl
*
This
=
info_impl_from_ICreateTypeInfo2
(
iface
);
FIXME
(
"%p %s %p - stub
\n
"
,
This
,
debugstr_guid
(
guid
),
varVal
);
return
E_NOTIMPL
;
TRACE
(
"%p %s %p
\n
"
,
This
,
debugstr_guid
(
guid
),
varVal
);
if
(
!
guid
||
!
varVal
)
return
E_INVALIDARG
;
return
TLB_set_custdata
(
&
This
->
custdata_list
,
guid
,
varVal
);
}
static
HRESULT
WINAPI
ICreateTypeInfo2_fnSetFuncCustData
(
ICreateTypeInfo2
*
iface
,
...
...
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