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
80c87025
Commit
80c87025
authored
Aug 25, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Make ITypeInfo2::GetCustData succeed when data is not found.
parent
bc56c4ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
6 deletions
+27
-6
typelib.c
dlls/oleaut32/tests/typelib.c
+22
-0
typelib.c
dlls/oleaut32/typelib.c
+5
-6
No files found.
dlls/oleaut32/tests/typelib.c
View file @
80c87025
...
...
@@ -449,6 +449,7 @@ static void test_TypeInfo(void)
{
ITypeLib
*
pTypeLib
;
ITypeInfo
*
pTypeInfo
;
ITypeInfo2
*
pTypeInfo2
;
HRESULT
hr
;
static
WCHAR
wszBogus
[]
=
{
'b'
,
'o'
,
'g'
,
'u'
,
's'
,
0
};
static
WCHAR
wszGetTypeInfo
[]
=
{
'G'
,
'e'
,
't'
,
'T'
,
'y'
,
'p'
,
'e'
,
'I'
,
'n'
,
'f'
,
'o'
,
0
};
...
...
@@ -458,6 +459,8 @@ static void test_TypeInfo(void)
OLECHAR
*
pwszClone
=
wszClone
;
DISPID
dispidMember
;
DISPPARAMS
dispparams
;
GUID
bogusguid
=
{
0x806afb4f
,
0x13f7
,
0x42d2
,{
0x89
,
0x2c
,
0x6c
,
0x97
,
0xc3
,
0x6a
,
0x36
,
0xc1
}};
VARIANT
var
;
hr
=
LoadTypeLib
(
wszStdOle2
,
&
pTypeLib
);
ok_ole_success
(
hr
,
LoadTypeLib
);
...
...
@@ -503,6 +506,25 @@ static void test_TypeInfo(void)
hr
=
ITypeInfo_GetIDsOfNames
(
pTypeInfo
,
&
pwszGetTypeInfo
,
1
,
&
dispidMember
);
ok_ole_success
(
hr
,
ITypeInfo_GetIDsOfNames
);
hr
=
ITypeInfo_QueryInterface
(
pTypeInfo
,
&
IID_ITypeInfo2
,
(
void
**
)
&
pTypeInfo2
);
ok_ole_success
(
hr
,
ITypeInfo_QueryInterface
);
if
(
SUCCEEDED
(
hr
))
{
VariantInit
(
&
var
);
V_VT
(
&
var
)
=
VT_I4
;
/* test unknown guid passed to GetCustData */
hr
=
ITypeInfo2_GetCustData
(
pTypeInfo2
,
&
bogusguid
,
&
var
);
ok_ole_success
(
hr
,
ITypeInfo_GetCustData
);
ok
(
V_VT
(
&
var
)
==
VT_EMPTY
,
"got %i, expected VT_EMPTY
\n
"
,
V_VT
(
&
var
));
ITypeInfo2_Release
(
pTypeInfo2
);
VariantClear
(
&
var
);
}
/* test invoking a method with a [restricted] keyword */
hr
=
ITypeInfo_Invoke
(
pTypeInfo
,
NULL
,
dispidMember
,
DISPATCH_METHOD
,
&
dispparams
,
NULL
,
NULL
,
NULL
);
todo_wine
{
...
...
dlls/oleaut32/typelib.c
View file @
80c87025
...
...
@@ -7047,13 +7047,12 @@ static HRESULT WINAPI ITypeInfo2_fnGetCustData(
TRACE
(
"(%p) guid %s %s found!x)
\n
"
,
This
,
debugstr_guid
(
guid
),
pCData
?
""
:
"NOT"
);
if
(
pCData
)
{
VariantInit
(
pVarVal
);
VariantInit
(
pVarVal
);
if
(
pCData
)
VariantCopy
(
pVarVal
,
&
pCData
->
data
);
return
S_OK
;
}
return
E_INVALIDARG
;
/* FIXME: correct? */
else
VariantClear
(
pVarVal
);
return
S_OK
;
}
/* ITypeInfo2::GetFuncCustData
...
...
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