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
ef7b6e27
Commit
ef7b6e27
authored
Jul 06, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: ITypeComp_fnBind should do case-insensitive compares on the name passed in.
parent
c71af733
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
typelib.c
dlls/oleaut32/tests/typelib.c
+13
-0
typelib.c
dlls/oleaut32/typelib.c
+2
-2
No files found.
dlls/oleaut32/tests/typelib.c
View file @
ef7b6e27
...
...
@@ -83,6 +83,7 @@ static void test_TypeComp(void)
static
WCHAR
wszStdPicture
[]
=
{
'S'
,
't'
,
'd'
,
'P'
,
'i'
,
'c'
,
't'
,
'u'
,
'r'
,
'e'
,
0
};
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
};
hr
=
LoadTypeLib
(
wszStdOle2
,
&
pTypeLib
);
ok_ole_success
(
hr
,
LoadTypeLib
);
...
...
@@ -245,6 +246,18 @@ static void test_TypeComp(void)
ok
(
!
pTypeInfo
,
"pTypeInfo should have been set to NULL
\n
"
);
ok
(
!
bindptr
.
lptcomp
,
"bindptr should have been set to NULL
\n
"
);
/* tests that the compare is case-insensitive */
ulHash
=
LHashValOfNameSys
(
SYS_WIN32
,
LOCALE_NEUTRAL
,
wszclone
);
hr
=
ITypeComp_Bind
(
pTypeComp
,
wszclone
,
ulHash
,
0
,
&
pTypeInfo
,
&
desckind
,
&
bindptr
);
ok_ole_success
(
hr
,
ITypeComp_Bind
);
ok
(
desckind
==
DESCKIND_FUNCDESC
,
"desckind should have been DESCKIND_FUNCDESC instead of %d
\n
"
,
desckind
);
ok
(
bindptr
.
lpfuncdesc
!=
NULL
,
"bindptr.lpfuncdesc should not have been set to NULL
\n
"
);
ITypeInfo_ReleaseFuncDesc
(
pTypeInfo
,
bindptr
.
lpfuncdesc
);
ITypeInfo_Release
(
pTypeInfo
);
ITypeComp_Release
(
pTypeComp
);
ITypeInfo_Release
(
pFontTypeInfo
);
ITypeLib_Release
(
pTypeLib
);
...
...
dlls/oleaut32/typelib.c
View file @
ef7b6e27
...
...
@@ -6544,7 +6544,7 @@ static HRESULT WINAPI ITypeComp_fnBind(
*
ppTInfo
=
NULL
;
for
(
pFDesc
=
This
->
funclist
;
pFDesc
;
pFDesc
=
pFDesc
->
next
)
if
(
!
strcmpW
(
pFDesc
->
Name
,
szName
))
{
if
(
!
strcmp
i
W
(
pFDesc
->
Name
,
szName
))
{
if
(
!
wFlags
||
(
pFDesc
->
funcdesc
.
invkind
&
wFlags
))
break
;
else
...
...
@@ -6566,7 +6566,7 @@ static HRESULT WINAPI ITypeComp_fnBind(
return
S_OK
;
}
else
{
for
(
pVDesc
=
This
->
varlist
;
pVDesc
;
pVDesc
=
pVDesc
->
next
)
{
if
(
!
strcmpW
(
pVDesc
->
Name
,
szName
))
{
if
(
!
strcmp
i
W
(
pVDesc
->
Name
,
szName
))
{
HRESULT
hr
=
TLB_AllocAndInitVarDesc
(
&
pVDesc
->
vardesc
,
&
pBindPtr
->
lpvardesc
);
if
(
FAILED
(
hr
))
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