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
b2b6fc12
Commit
b2b6fc12
authored
Jul 19, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Cope with missing assemblyIdentity elements in manifests.
parent
272af8fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
actctx.c
dlls/ntdll/actctx.c
+13
-17
No files found.
dlls/ntdll/actctx.c
View file @
b2b6fc12
...
...
@@ -1174,7 +1174,6 @@ static BOOL parse_assembly_elem(xmlbuf_t* xmlbuf, struct actctx_loader* acl,
{
xmlstr_t
attr_name
,
attr_value
,
elem
;
BOOL
end
=
FALSE
,
error
,
version
=
FALSE
,
xmlns
=
FALSE
,
ret
=
TRUE
;
struct
assembly_identity
ai
;
TRACE
(
"(%p)
\n
"
,
xmlbuf
);
...
...
@@ -1224,28 +1223,24 @@ static BOOL parse_assembly_elem(xmlbuf_t* xmlbuf, struct actctx_loader* acl,
else
if
(
assembly
->
type
==
ASSEMBLY_MANIFEST
&&
assembly
->
no_inherit
)
return
FALSE
;
if
(
!
xmlstr_cmp
(
&
elem
,
ASSEMBLYIDENTITY_ELEM
))
if
(
xmlstr_cmp
(
&
elem
,
ASSEMBLYIDENTITY_ELEM
))
{
WARN
(
"expected assemblyIdentity element, got %s
\n
"
,
debugstr_xmlstr
(
&
elem
));
return
FALSE
;
}
if
(
!
parse_assembly_identity_elem
(
xmlbuf
,
acl
->
actctx
,
&
ai
))
return
FALSE
;
if
(
!
parse_assembly_identity_elem
(
xmlbuf
,
acl
->
actctx
,
&
assembly
->
id
))
return
FALSE
;
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
);
if
(
expected_ai
)
{
/* FIXME: more tests */
if
(
assembly
->
type
==
ASSEMBLY_MANIFEST
&&
memcmp
(
&
ai
.
version
,
&
expected_ai
->
version
,
sizeof
(
ai
.
version
)))
if
(
expected_ai
)
{
WARN
(
"wrong version
\n
"
);
return
FALSE
;
/* FIXME: more tests */
if
(
assembly
->
type
==
ASSEMBLY_MANIFEST
&&
memcmp
(
&
assembly
->
id
.
version
,
&
expected_ai
->
version
,
sizeof
(
assembly
->
id
.
version
)))
{
FIXME
(
"wrong version
\n
"
);
return
FALSE
;
}
}
}
assembly
->
id
=
ai
;
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
while
(
ret
)
{
if
(
xmlstr_cmp
(
&
elem
,
ELEM_END
(
ASSEMBLY_ELEM
)))
{
...
...
@@ -1281,6 +1276,7 @@ static BOOL parse_assembly_elem(xmlbuf_t* xmlbuf, struct actctx_loader* acl,
WARN
(
"wrong element %s
\n
"
,
debugstr_xmlstr
(
&
elem
));
ret
=
FALSE
;
}
if
(
ret
)
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
);
}
return
ret
;
...
...
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