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
b6d7b855
Commit
b6d7b855
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 hash attributes in manifests.
parent
a22dcd1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
actctx.c
dlls/ntdll/actctx.c
+13
-0
No files found.
dlls/ntdll/actctx.c
View file @
b6d7b855
...
...
@@ -124,6 +124,7 @@ struct entity
struct
dll_redirect
{
WCHAR
*
name
;
WCHAR
*
hash
;
struct
entity
*
entities
;
unsigned
int
num_entities
;
unsigned
int
allocated_entities
;
...
...
@@ -177,6 +178,8 @@ struct actctx_loader
#define ELEM_END(elem) "/" elem
#define CLSID_ATTR "clsid"
#define HASH_ATTR "hash"
#define HASHALG_ATTR "hashalg"
#define HELPDIR_ATTR "helpdir"
#define IID_ATTR "iid"
#define MANIFESTVERSION_ATTR "manifestVersion"
...
...
@@ -414,6 +417,7 @@ static void actctx_release( ACTIVATION_CONTEXT *actctx )
for
(
k
=
0
;
k
<
dll
->
num_entities
;
k
++
)
free_entity
(
&
dll
->
entities
[
k
]);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
dll
->
entities
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
dll
->
name
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
dll
->
hash
);
}
RtlFreeHeap
(
GetProcessHeap
(),
0
,
assembly
->
dlls
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
assembly
->
manifest
.
info
);
...
...
@@ -848,6 +852,15 @@ static BOOL parse_file_elem(xmlbuf_t* xmlbuf, struct assembly* assembly)
if
(
!
(
dll
->
name
=
xmlstrdupW
(
&
attr_value
)))
return
FALSE
;
TRACE
(
"name=%s
\n
"
,
debugstr_xmlstr
(
&
attr_value
));
}
else
if
(
xmlstr_cmp
(
&
attr_name
,
HASH_ATTR
))
{
if
(
!
(
dll
->
hash
=
xmlstrdupW
(
&
attr_value
)))
return
FALSE
;
}
else
if
(
xmlstr_cmp
(
&
attr_name
,
HASHALG_ATTR
))
{
if
(
!
xmlstr_cmp
(
&
attr_value
,
"SHA1"
))
FIXME
(
"hashalg should be SHA1, got %s
\n
"
,
debugstr_xmlstr
(
&
attr_value
));
}
else
{
WARN
(
"wrong attr %s=%s
\n
"
,
debugstr_xmlstr
(
&
attr_name
),
...
...
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