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
5efd2a35
Commit
5efd2a35
authored
Jul 19, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add parsing of dependencies in manifests.
parent
c5bf0947
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
0 deletions
+71
-0
actctx.c
dlls/ntdll/actctx.c
+71
-0
No files found.
dlls/ntdll/actctx.c
View file @
5efd2a35
...
@@ -128,6 +128,8 @@ struct actctx_loader
...
@@ -128,6 +128,8 @@ struct actctx_loader
#define ASSEMBLY_ELEM "assembly"
#define ASSEMBLY_ELEM "assembly"
#define ASSEMBLYIDENTITY_ELEM "assemblyIdentity"
#define ASSEMBLYIDENTITY_ELEM "assemblyIdentity"
#define DEPENDENCY_ELEM "dependency"
#define DEPENDENTASSEMBLY_ELEM "dependentAssembly"
#define ELEM_END(elem) "/" elem
#define ELEM_END(elem) "/" elem
...
@@ -493,6 +495,71 @@ static BOOL parse_assembly_identity_elem(xmlbuf_t* xmlbuf, ACTIVATION_CONTEXT* a
...
@@ -493,6 +495,71 @@ static BOOL parse_assembly_identity_elem(xmlbuf_t* xmlbuf, ACTIVATION_CONTEXT* a
return
parse_expect_elem
(
xmlbuf
,
ELEM_END
(
ASSEMBLYIDENTITY_ELEM
))
&&
parse_end_element
(
xmlbuf
);
return
parse_expect_elem
(
xmlbuf
,
ELEM_END
(
ASSEMBLYIDENTITY_ELEM
))
&&
parse_end_element
(
xmlbuf
);
}
}
static
BOOL
parse_dependent_assembly_elem
(
xmlbuf_t
*
xmlbuf
,
struct
actctx_loader
*
acl
)
{
struct
assembly_identity
ai
;
xmlstr_t
elem
;
BOOL
end
=
FALSE
,
ret
=
TRUE
;
TRACE
(
"
\n
"
);
if
(
!
parse_expect_no_attr
(
xmlbuf
,
&
end
)
||
end
)
return
end
;
if
(
!
parse_expect_elem
(
xmlbuf
,
ASSEMBLYIDENTITY_ELEM
)
||
!
parse_assembly_identity_elem
(
xmlbuf
,
acl
->
actctx
,
&
ai
))
return
FALSE
;
/* store the newly found identity for later loading */
if
(
!
add_dependent_assembly_id
(
acl
,
&
ai
))
return
FALSE
;
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
{
if
(
xmlstr_cmp
(
&
elem
,
ELEM_END
(
DEPENDENTASSEMBLY_ELEM
)))
{
ret
=
parse_end_element
(
xmlbuf
);
break
;
}
else
{
WARN
(
"wrong elem %s
\n
"
,
debugstr_xmlstr
(
&
elem
));
ret
=
FALSE
;
}
}
return
ret
;
}
static
BOOL
parse_dependency_elem
(
xmlbuf_t
*
xmlbuf
,
struct
actctx_loader
*
acl
)
{
xmlstr_t
elem
;
BOOL
end
=
FALSE
,
ret
=
TRUE
;
TRACE
(
"
\n
"
);
if
(
!
parse_expect_no_attr
(
xmlbuf
,
&
end
)
||
end
)
return
end
;
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
{
if
(
xmlstr_cmp
(
&
elem
,
ELEM_END
(
DEPENDENCY_ELEM
)))
{
ret
=
parse_end_element
(
xmlbuf
);
break
;
}
else
if
(
xmlstr_cmp
(
&
elem
,
DEPENDENTASSEMBLY_ELEM
))
{
ret
=
parse_dependent_assembly_elem
(
xmlbuf
,
acl
);
}
else
{
WARN
(
"wrong element %s
\n
"
,
debugstr_xmlstr
(
&
elem
));
ret
=
FALSE
;
}
}
return
ret
;
}
static
BOOL
parse_assembly_elem
(
xmlbuf_t
*
xmlbuf
,
struct
actctx_loader
*
acl
,
static
BOOL
parse_assembly_elem
(
xmlbuf_t
*
xmlbuf
,
struct
actctx_loader
*
acl
,
struct
assembly
*
assembly
,
struct
assembly
*
assembly
,
struct
assembly_identity
*
expected_ai
)
struct
assembly_identity
*
expected_ai
)
...
@@ -562,6 +629,10 @@ static BOOL parse_assembly_elem(xmlbuf_t* xmlbuf, struct actctx_loader* acl,
...
@@ -562,6 +629,10 @@ static BOOL parse_assembly_elem(xmlbuf_t* xmlbuf, struct actctx_loader* acl,
ret
=
parse_end_element
(
xmlbuf
);
ret
=
parse_end_element
(
xmlbuf
);
break
;
break
;
}
}
else
if
(
xmlstr_cmp
(
&
elem
,
DEPENDENCY_ELEM
))
{
ret
=
parse_dependency_elem
(
xmlbuf
,
acl
);
}
else
else
{
{
WARN
(
"wrong element %s
\n
"
,
debugstr_xmlstr
(
&
elem
));
WARN
(
"wrong element %s
\n
"
,
debugstr_xmlstr
(
&
elem
));
...
...
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