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
900c5cde
Commit
900c5cde
authored
Jan 11, 2011
by
David Hedberg
Committed by
Alexandre Julliard
Jan 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Make ITypeComp::BindType case-insensitive.
parent
454b1fca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
typelib.c
dlls/oleaut32/tests/typelib.c
+12
-0
typelib.c
dlls/oleaut32/typelib.c
+1
-1
No files found.
dlls/oleaut32/tests/typelib.c
View file @
900c5cde
...
@@ -117,6 +117,7 @@ static void test_TypeComp(void)
...
@@ -117,6 +117,7 @@ static void test_TypeComp(void)
static
WCHAR
wszIUnknown
[]
=
{
'I'
,
'U'
,
'n'
,
'k'
,
'n'
,
'o'
,
'w'
,
'n'
,
0
};
static
WCHAR
wszIUnknown
[]
=
{
'I'
,
'U'
,
'n'
,
'k'
,
'n'
,
'o'
,
'w'
,
'n'
,
0
};
static
WCHAR
wszFont
[]
=
{
'F'
,
'o'
,
'n'
,
't'
,
0
};
static
WCHAR
wszFont
[]
=
{
'F'
,
'o'
,
'n'
,
't'
,
0
};
static
WCHAR
wszGUID
[]
=
{
'G'
,
'U'
,
'I'
,
'D'
,
0
};
static
WCHAR
wszGUID
[]
=
{
'G'
,
'U'
,
'I'
,
'D'
,
0
};
static
WCHAR
wszguid
[]
=
{
'g'
,
'u'
,
'i'
,
'd'
,
0
};
static
WCHAR
wszStdPicture
[]
=
{
'S'
,
't'
,
'd'
,
'P'
,
'i'
,
'c'
,
't'
,
'u'
,
'r'
,
'e'
,
0
};
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
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
};
...
@@ -291,6 +292,17 @@ static void test_TypeComp(void)
...
@@ -291,6 +292,17 @@ static void test_TypeComp(void)
ITypeInfo_Release
(
pTypeInfo
);
ITypeInfo_Release
(
pTypeInfo
);
if
(
pTypeComp_tmp
)
ITypeComp_Release
(
pTypeComp_tmp
);
/* fixme */
if
(
pTypeComp_tmp
)
ITypeComp_Release
(
pTypeComp_tmp
);
/* fixme */
/* test BindType case-insensitivity */
ulHash
=
LHashValOfNameSys
(
SYS_WIN32
,
LOCALE_NEUTRAL
,
wszguid
);
pTypeComp_tmp
=
(
void
*
)
0xdeadbeef
;
pTypeInfo
=
(
void
*
)
0xdeadbeef
;
hr
=
ITypeComp_BindType
(
pTypeComp
,
wszguid
,
ulHash
,
&
pTypeInfo
,
&
pTypeComp_tmp
);
ok_ole_success
(
hr
,
ITypeComp_BindType
);
ok
(
pTypeInfo
!=
NULL
,
"Got NULL pTypeInfo
\n
"
);
todo_wine
ok
(
pTypeComp_tmp
==
NULL
,
"Got pTypeComp_tmp %p
\n
"
,
pTypeComp_tmp
);
ITypeInfo_Release
(
pTypeInfo
);
if
(
pTypeComp_tmp
)
ITypeComp_Release
(
pTypeComp_tmp
);
/* fixme */
ITypeComp_Release
(
pTypeComp
);
ITypeComp_Release
(
pTypeComp
);
/* tests for ITypeComp on an interface */
/* tests for ITypeComp on an interface */
...
...
dlls/oleaut32/typelib.c
View file @
900c5cde
...
@@ -4914,7 +4914,7 @@ static HRESULT WINAPI ITypeLibComp_fnBindType(
...
@@ -4914,7 +4914,7 @@ static HRESULT WINAPI ITypeLibComp_fnBindType(
for
(
pTypeInfo
=
This
->
pTypeInfo
;
pTypeInfo
;
pTypeInfo
=
pTypeInfo
->
next
)
for
(
pTypeInfo
=
This
->
pTypeInfo
;
pTypeInfo
;
pTypeInfo
=
pTypeInfo
->
next
)
{
{
/* FIXME: should use lHash to do the search */
/* FIXME: should use lHash to do the search */
if
(
pTypeInfo
->
Name
&&
!
strcmpW
(
pTypeInfo
->
Name
,
szName
))
if
(
pTypeInfo
->
Name
&&
!
strcmp
i
W
(
pTypeInfo
->
Name
,
szName
))
{
{
TRACE
(
"returning %p
\n
"
,
pTypeInfo
);
TRACE
(
"returning %p
\n
"
,
pTypeInfo
);
*
ppTInfo
=
(
ITypeInfo
*
)
&
pTypeInfo
->
lpVtbl
;
*
ppTInfo
=
(
ITypeInfo
*
)
&
pTypeInfo
->
lpVtbl
;
...
...
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