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
135a7077
Commit
135a7077
authored
Sep 10, 2010
by
Alexandre Goujon
Committed by
Alexandre Julliard
Sep 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion: Improve parse_display_name.
parent
4baf7a52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
asmname.c
dlls/fusion/asmname.c
+9
-1
asmname.c
dlls/fusion/tests/asmname.c
+3
-6
No files found.
dlls/fusion/asmname.c
View file @
135a7077
...
...
@@ -522,8 +522,16 @@ static HRESULT parse_display_name(IAssemblyNameImpl *name, LPCWSTR szAssemblyNam
if
(
!
str
)
return
E_OUTOFMEMORY
;
ptr
=
str
strW
(
str
,
separator
);
ptr
=
str
chrW
(
str
,
','
);
if
(
ptr
)
*
ptr
=
'\0'
;
/* no ',' but ' ' only */
if
(
!
ptr
&&
strchrW
(
str
,
' '
)
)
{
hr
=
FUSION_E_INVALID_NAME
;
goto
done
;
}
name
->
name
=
strdupW
(
str
);
if
(
!
name
->
name
)
return
E_OUTOFMEMORY
;
...
...
dlls/fusion/tests/asmname.c
View file @
135a7077
...
...
@@ -868,12 +868,9 @@ static void test_CreateAssemblyNameObject(void)
to_widechar
(
namestr
,
"wine PublicKeyToken=1234567890abcdef"
);
name
=
(
IAssemblyName
*
)
0xdeadbeef
;
hr
=
pCreateAssemblyNameObject
(
&
name
,
namestr
,
CANOF_PARSE_DISPLAY_NAME
,
NULL
);
todo_wine
{
ok
(
hr
==
FUSION_E_INVALID_NAME
,
"Expected FUSION_E_INVALID_NAME, got %08x
\n
"
,
hr
);
ok
(
name
==
(
IAssemblyName
*
)
0xdeadbeef
,
"Expected 0xdeadbeef, got %p
\n
"
,
name
);
}
ok
(
hr
==
FUSION_E_INVALID_NAME
,
"Expected FUSION_E_INVALID_NAME, got %08x
\n
"
,
hr
);
ok
(
name
==
(
IAssemblyName
*
)
0xdeadbeef
,
"Expected 0xdeadbeef, got %p
\n
"
,
name
);
if
(
SUCCEEDED
(
hr
))
IAssemblyName_Release
(
name
);
/* no '=' */
...
...
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