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
3173305e
Commit
3173305e
authored
Jul 16, 2010
by
Andrew Eikum
Committed by
Alexandre Julliard
Jul 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Don't fail if member is missing in ITypeComp::Bind.
parent
fe41d09d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
typelib.c
dlls/oleaut32/tests/typelib.c
+12
-0
typelib.c
dlls/oleaut32/typelib.c
+3
-3
No files found.
dlls/oleaut32/tests/typelib.c
View file @
3173305e
...
...
@@ -107,6 +107,7 @@ static void test_TypeComp(void)
static
WCHAR
wszOLE_COLOR
[]
=
{
'O'
,
'L'
,
'E'
,
'_'
,
'C'
,
'O'
,
'L'
,
'O'
,
'R'
,
0
};
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
};
hr
=
LoadTypeLib
(
wszStdOle2
,
&
pTypeLib
);
ok_ole_success
(
hr
,
LoadTypeLib
);
...
...
@@ -282,6 +283,17 @@ static void test_TypeComp(void)
ITypeInfo_ReleaseFuncDesc
(
pTypeInfo
,
bindptr
.
lpfuncdesc
);
ITypeInfo_Release
(
pTypeInfo
);
/* tests non-existent members */
desckind
=
0xdeadbeef
;
bindptr
.
lptcomp
=
(
ITypeComp
*
)
0xdeadbeef
;
pTypeInfo
=
(
ITypeInfo
*
)
0xdeadbeef
;
ulHash
=
LHashValOfNameSys
(
SYS_WIN32
,
LOCALE_NEUTRAL
,
wszJunk
);
hr
=
ITypeComp_Bind
(
pTypeComp
,
wszJunk
,
ulHash
,
0
,
&
pTypeInfo
,
&
desckind
,
&
bindptr
);
ok_ole_success
(
hr
,
ITypeComp_Bind
);
ok
(
desckind
==
DESCKIND_NONE
,
"desckind should have been DESCKIND_NONE, was: %d
\n
"
,
desckind
);
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
);
ITypeComp_Release
(
pTypeComp
);
ITypeInfo_Release
(
pFontTypeInfo
);
ITypeLib_Release
(
pTypeLib
);
...
...
dlls/oleaut32/typelib.c
View file @
3173305e
...
...
@@ -7654,9 +7654,9 @@ static HRESULT WINAPI ITypeComp_fnBind(
ITypeInfoImpl
*
This
=
info_impl_from_ITypeComp
(
iface
);
const
TLBFuncDesc
*
pFDesc
;
const
TLBVarDesc
*
pVDesc
;
HRESULT
hr
=
DISP_E_MEMBERNOTFOUND
;
HRESULT
hr
=
S_OK
;
TRACE
(
"(%
s, %x, 0x%x, %p, %p, %p)
\n
"
,
debugstr_w
(
szName
),
lHash
,
wFlags
,
ppTInfo
,
pDescKind
,
pBindPtr
);
TRACE
(
"(%
p)->(%s, %x, 0x%x, %p, %p, %p)
\n
"
,
This
,
debugstr_w
(
szName
),
lHash
,
wFlags
,
ppTInfo
,
pDescKind
,
pBindPtr
);
*
pDescKind
=
DESCKIND_NONE
;
pBindPtr
->
lpfuncdesc
=
NULL
;
...
...
@@ -7716,7 +7716,7 @@ static HRESULT WINAPI ITypeComp_fnBind(
}
WARN
(
"Could not search inherited interface!
\n
"
);
}
WARN
(
"did not find member with name %s, flags 0x%x!
\n
"
,
debugstr_w
(
szName
),
wFlags
);
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