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
6b4f43e8
Commit
6b4f43e8
authored
Sep 10, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
Sep 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Don't crash on NULL string arguments.
parent
5bfabee8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
typelib.c
dlls/oleaut32/tests/typelib.c
+11
-0
typelib.c
dlls/oleaut32/typelib.c
+3
-0
No files found.
dlls/oleaut32/tests/typelib.c
View file @
6b4f43e8
...
...
@@ -4243,6 +4243,8 @@ static void test_SetFuncAndParamNames(void)
static
OLECHAR
nameW
[]
=
{
'n'
,
'a'
,
'm'
,
'e'
,
0
};
static
OLECHAR
prop
[]
=
{
'p'
,
'r'
,
'o'
,
'p'
,
0
};
static
OLECHAR
*
propW
[]
=
{
prop
};
static
OLECHAR
func
[]
=
{
'f'
,
'u'
,
'n'
,
'c'
,
0
};
static
OLECHAR
*
funcW
[]
=
{
func
,
NULL
};
CHAR
filenameA
[
MAX_PATH
];
WCHAR
filenameW
[
MAX_PATH
];
ICreateTypeLib2
*
ctl
;
...
...
@@ -4309,6 +4311,15 @@ static void test_SetFuncAndParamNames(void)
hr
=
ICreateTypeInfo_SetFuncAndParamNames
(
cti
,
3
,
propW
,
1
);
ok
(
hr
==
TYPE_E_AMBIGUOUSNAME
,
"got 0x%08x
\n
"
,
hr
);
/* regular function */
funcdesc
.
invkind
=
INVOKE_FUNC
;
funcdesc
.
cParams
=
1
;
hr
=
ICreateTypeInfo_AddFuncDesc
(
cti
,
4
,
&
funcdesc
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
ICreateTypeInfo_SetFuncAndParamNames
(
cti
,
4
,
funcW
,
2
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ICreateTypeInfo_Release
(
cti
);
ICreateTypeLib2_Release
(
ctl
);
DeleteFileA
(
filenameA
);
...
...
dlls/oleaut32/typelib.c
View file @
6b4f43e8
...
...
@@ -1889,6 +1889,9 @@ static TLBString *TLB_append_str(struct list *string_list, BSTR new_str)
{
TLBString
*
str
;
if
(
!
new_str
)
return
NULL
;
LIST_FOR_EACH_ENTRY
(
str
,
string_list
,
TLBString
,
entry
)
{
if
(
strcmpW
(
str
->
str
,
new_str
)
==
0
)
return
str
;
...
...
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