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
da409d6a
Commit
da409d6a
authored
Mar 12, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Return type mismatch errors in ITypeLibComp_fnBind.
parent
4f20455e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
typelib.c
dlls/oleaut32/tests/typelib.c
+1
-1
typelib.c
dlls/oleaut32/typelib.c
+13
-0
No files found.
dlls/oleaut32/tests/typelib.c
View file @
da409d6a
...
...
@@ -150,7 +150,7 @@ static void test_TypeComp(void)
/* test getting a function within a TKIND_MODULE with INVOKE_PROPERTYGET */
ulHash
=
LHashValOfNameSys
(
SYS_WIN32
,
LOCALE_NEUTRAL
,
wszSavePicture
);
hr
=
ITypeComp_Bind
(
pTypeComp
,
wszSavePicture
,
ulHash
,
INVOKE_PROPERTYGET
,
&
pTypeInfo
,
&
desckind
,
&
bindptr
);
todo_wine
ok
(
hr
==
TYPE_E_TYPEMISMATCH
,
ok
(
hr
==
TYPE_E_TYPEMISMATCH
,
"ITypeComp_Bind should have failed with TYPE_E_TYPEMISMATCH instead of 0x%08x
\n
"
,
hr
);
...
...
dlls/oleaut32/typelib.c
View file @
da409d6a
...
...
@@ -4722,6 +4722,7 @@ static HRESULT WINAPI ITypeLibComp_fnBind(
{
ITypeLibImpl
*
This
=
impl_from_ITypeComp
(
iface
);
ITypeInfoImpl
*
pTypeInfo
;
int
typemismatch
=
0
;
TRACE
(
"(%s, 0x%x, 0x%x, %p, %p, %p)
\n
"
,
debugstr_w
(
szName
),
lHash
,
wFlags
,
ppTInfo
,
pDescKind
,
pBindPtr
);
...
...
@@ -4761,6 +4762,8 @@ static HRESULT WINAPI ITypeLibComp_fnBind(
TRACE
(
"found in module or in enum: %s
\n
"
,
debugstr_w
(
szName
));
return
S_OK
;
}
else
if
(
hr
==
TYPE_E_TYPEMISMATCH
)
typemismatch
=
1
;
}
if
((
pTypeInfo
->
TypeAttr
.
typekind
==
TKIND_COCLASS
)
&&
...
...
@@ -4833,11 +4836,21 @@ static HRESULT WINAPI ITypeLibComp_fnBind(
ITypeInfo_AddRef
(
*
ppTInfo
);
return
S_OK
;
}
else
if
(
hr
==
TYPE_E_TYPEMISMATCH
)
typemismatch
=
1
;
}
}
if
(
typemismatch
)
{
TRACE
(
"type mismatch %s
\n
"
,
debugstr_w
(
szName
));
return
TYPE_E_TYPEMISMATCH
;
}
else
{
TRACE
(
"name not found %s
\n
"
,
debugstr_w
(
szName
));
return
S_OK
;
}
}
static
HRESULT
WINAPI
ITypeLibComp_fnBindType
(
...
...
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