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
c0f120db
Commit
c0f120db
authored
Nov 09, 2010
by
Andrew Eikum
Committed by
Alexandre Julliard
Nov 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Search inherited interfaces again in ITypeComp::Bind.
parent
62c37253
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
typelib.c
dlls/oleaut32/tests/typelib.c
+14
-0
typelib.c
dlls/oleaut32/typelib.c
+3
-1
No files found.
dlls/oleaut32/tests/typelib.c
View file @
c0f120db
...
...
@@ -121,6 +121,7 @@ static void test_TypeComp(void)
static
WCHAR
wszClone
[]
=
{
'C'
,
'l'
,
'o'
,
'n'
,
'e'
,
0
};
static
WCHAR
wszclone
[]
=
{
'c'
,
'l'
,
'o'
,
'n'
,
'e'
,
0
};
static
WCHAR
wszJunk
[]
=
{
'J'
,
'u'
,
'n'
,
'k'
,
0
};
static
WCHAR
wszAddRef
[]
=
{
'A'
,
'd'
,
'd'
,
'R'
,
'e'
,
'f'
,
0
};
hr
=
LoadTypeLib
(
wszStdOle2
,
&
pTypeLib
);
ok_ole_success
(
hr
,
LoadTypeLib
);
...
...
@@ -307,6 +308,19 @@ static void test_TypeComp(void)
ok
(
pTypeInfo
==
NULL
,
"pTypeInfo should have been NULL, was: %p
\n
"
,
pTypeInfo
);
ok
(
bindptr
.
lptcomp
==
NULL
,
"bindptr should have been NULL, was: %p
\n
"
,
bindptr
.
lptcomp
);
/* tests inherited members */
desckind
=
0xdeadbeef
;
bindptr
.
lpfuncdesc
=
NULL
;
pTypeInfo
=
NULL
;
ulHash
=
LHashValOfNameSys
(
SYS_WIN32
,
LOCALE_NEUTRAL
,
wszAddRef
);
hr
=
ITypeComp_Bind
(
pTypeComp
,
wszAddRef
,
ulHash
,
0
,
&
pTypeInfo
,
&
desckind
,
&
bindptr
);
ok_ole_success
(
hr
,
ITypeComp_Bind
);
ok
(
desckind
==
DESCKIND_FUNCDESC
,
"desckind should have been DESCKIND_FUNCDESC, was: %d
\n
"
,
desckind
);
ok
(
pTypeInfo
!=
NULL
,
"pTypeInfo should not have been NULL, was: %p
\n
"
,
pTypeInfo
);
ok
(
bindptr
.
lpfuncdesc
!=
NULL
,
"bindptr should not have been NULL, was: %p
\n
"
,
bindptr
.
lpfuncdesc
);
ITypeInfo_ReleaseFuncDesc
(
pTypeInfo
,
bindptr
.
lpfuncdesc
);
ITypeInfo_Release
(
pTypeInfo
);
ITypeComp_Release
(
pTypeComp
);
ITypeInfo_Release
(
pFontTypeInfo
);
ITypeLib_Release
(
pTypeLib
);
...
...
dlls/oleaut32/typelib.c
View file @
c0f120db
...
...
@@ -7846,7 +7846,7 @@ static HRESULT WINAPI ITypeComp_fnBind(
ITypeInfoImpl
*
This
=
info_impl_from_ITypeComp
(
iface
);
const
TLBFuncDesc
*
pFDesc
;
const
TLBVarDesc
*
pVDesc
;
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
DISP_E_MEMBERNOTFOUND
;
TRACE
(
"(%p)->(%s, %x, 0x%x, %p, %p, %p)
\n
"
,
This
,
debugstr_w
(
szName
),
lHash
,
wFlags
,
ppTInfo
,
pDescKind
,
pBindPtr
);
...
...
@@ -7908,6 +7908,8 @@ static HRESULT WINAPI ITypeComp_fnBind(
}
WARN
(
"Could not search inherited interface!
\n
"
);
}
if
(
hr
==
DISP_E_MEMBERNOTFOUND
)
hr
=
S_OK
;
TRACE
(
"did not find member with name %s, flags 0x%x
\n
"
,
debugstr_w
(
szName
),
wFlags
);
return
hr
;
}
...
...
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