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
e6b3ca09
Commit
e6b3ca09
authored
Jul 19, 2007
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Added parsing of the binding redirect element in manifests.
parent
3c1f5c6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
actctx.c
dlls/ntdll/actctx.c
+34
-0
No files found.
dlls/ntdll/actctx.c
View file @
e6b3ca09
...
...
@@ -185,6 +185,7 @@ struct actctx_loader
#define ASSEMBLY_ELEM "assembly"
#define ASSEMBLYIDENTITY_ELEM "assemblyIdentity"
#define BINDINGREDIRECT_ELEM "bindingRedirect"
#define CLRCLASS_ELEM "clrClass"
#define CLRSURROGATE_ELEM "clrSurrogate"
#define COMCLASS_ELEM "comClass"
...
...
@@ -209,6 +210,8 @@ struct actctx_loader
#define LANGUAGE_ATTR "language"
#define MANIFESTVERSION_ATTR "manifestVersion"
#define NAME_ATTR "name"
#define NEWVERSION_ATTR "newVersion"
#define OLDVERSION_ATTR "oldVersion"
#define PROCESSORARCHITECTURE_ATTR "processorArchitecture"
#define PUBLICKEYTOKEN_ATTR "publicKeyToken"
#define TLBID_ATTR "tlbid"
...
...
@@ -818,6 +821,33 @@ static BOOL parse_window_class_elem(xmlbuf_t* xmlbuf, struct dll_redirect* dll)
return
ret
;
}
static
BOOL
parse_binding_redirect_elem
(
xmlbuf_t
*
xmlbuf
)
{
xmlstr_t
attr_name
,
attr_value
;
BOOL
end
=
FALSE
,
error
;
while
(
next_xml_attr
(
xmlbuf
,
&
attr_name
,
&
attr_value
,
&
error
,
&
end
))
{
if
(
xmlstr_cmp
(
&
attr_name
,
OLDVERSION_ATTR
))
{
FIXME
(
"Not stored yet oldVersion=%s
\n
"
,
debugstr_xmlstr
(
&
attr_value
));
}
else
if
(
xmlstr_cmp
(
&
attr_name
,
NEWVERSION_ATTR
))
{
FIXME
(
"Not stored yet newVersion=%s
\n
"
,
debugstr_xmlstr
(
&
attr_value
));
}
else
{
WARN
(
"wrong attr %s=%s
\n
"
,
debugstr_xmlstr
(
&
attr_name
),
debugstr_xmlstr
(
&
attr_value
));
return
FALSE
;
}
}
if
(
error
||
end
)
return
end
;
return
parse_expect_elem
(
xmlbuf
,
ELEM_END
(
BINDINGREDIRECT_ELEM
))
&&
parse_end_element
(
xmlbuf
);
}
static
BOOL
parse_description_elem
(
xmlbuf_t
*
xmlbuf
)
{
xmlstr_t
elem
,
content
;
...
...
@@ -966,6 +996,10 @@ static BOOL parse_dependent_assembly_elem(xmlbuf_t* xmlbuf,
ret
=
parse_end_element
(
xmlbuf
);
break
;
}
else
if
(
xmlstr_cmp
(
&
elem
,
BINDINGREDIRECT_ELEM
))
{
ret
=
parse_binding_redirect_elem
(
xmlbuf
);
}
else
{
WARN
(
"wrong elem %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