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
3b5963c9
Commit
3b5963c9
authored
Jul 26, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Improve some activation context traces.
parent
ad0d2b90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
actctx.c
dlls/ntdll/actctx.c
+24
-6
No files found.
dlls/ntdll/actctx.c
View file @
3b5963c9
...
...
@@ -269,6 +269,11 @@ static inline const char* debugstr_xmlstr(const xmlstr_t* str)
return
debugstr_an
(
str
->
ptr
,
str
->
len
);
}
static
inline
const
char
*
debugstr_version
(
const
struct
version
*
ver
)
{
return
wine_dbg_sprintf
(
"%u.%u.%u.%u"
,
ver
->
major
,
ver
->
minor
,
ver
->
build
,
ver
->
revision
);
}
static
struct
assembly
*
add_assembly
(
ACTIVATION_CONTEXT
*
actctx
,
enum
assembly_type
at
)
{
struct
assembly
*
assembly
;
...
...
@@ -774,8 +779,6 @@ static BOOL parse_assembly_identity_elem(xmlbuf_t* xmlbuf, ACTIVATION_CONTEXT* a
xmlstr_t
attr_name
,
attr_value
;
BOOL
end
=
FALSE
,
error
;
TRACE
(
"
\n
"
);
while
(
next_xml_attr
(
xmlbuf
,
&
attr_name
,
&
attr_value
,
&
error
,
&
end
))
{
if
(
xmlstr_cmp
(
&
attr_name
,
NAME_ATTR
))
...
...
@@ -816,6 +819,9 @@ static BOOL parse_assembly_identity_elem(xmlbuf_t* xmlbuf, ACTIVATION_CONTEXT* a
}
}
TRACE
(
"name=%s version=%s arch=%s
\n
"
,
debugstr_w
(
ai
->
name
),
debugstr_version
(
&
ai
->
version
),
debugstr_w
(
ai
->
arch
)
);
if
(
error
||
end
)
return
end
;
return
parse_expect_elem
(
xmlbuf
,
ELEM_END
(
ASSEMBLYIDENTITY_ELEM
))
&&
parse_end_element
(
xmlbuf
);
}
...
...
@@ -1097,7 +1103,8 @@ static BOOL parse_dependent_assembly_elem(xmlbuf_t* xmlbuf, struct actctx_loader
!
parse_assembly_identity_elem
(
xmlbuf
,
acl
->
actctx
,
&
ai
))
return
FALSE
;
TRACE
(
"adding %s
\n
"
,
debugstr_w
(
ai
.
name
)
);
TRACE
(
"adding name=%s version=%s arch=%s
\n
"
,
debugstr_w
(
ai
.
name
),
debugstr_version
(
&
ai
.
version
),
debugstr_w
(
ai
.
arch
)
);
/* store the newly found identity for later loading */
if
(
!
add_dependent_assembly_id
(
acl
,
&
ai
))
return
FALSE
;
...
...
@@ -1128,8 +1135,6 @@ static BOOL parse_dependency_elem(xmlbuf_t* xmlbuf, struct actctx_loader* acl)
xmlstr_t
attr_name
,
attr_value
,
elem
;
BOOL
end
=
FALSE
,
ret
=
TRUE
,
error
,
optional
=
FALSE
;
TRACE
(
"
\n
"
);
while
(
next_xml_attr
(
xmlbuf
,
&
attr_name
,
&
attr_value
,
&
error
,
&
end
))
{
if
(
xmlstr_cmp
(
&
attr_name
,
OPTIONAL_ATTR
))
...
...
@@ -1463,7 +1468,17 @@ static NTSTATUS get_manifest_in_module( struct actctx_loader* acl, struct assemb
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
=
NULL
;
void
*
ptr
;
TRACE
(
"looking for res %s in module %p %s
\n
"
,
debugstr_w
(
resname
),
hModule
,
debugstr_w
(
filename
)
);
if
(
TRACE_ON
(
actctx
))
{
if
(
!
filename
&&
!
get_module_filename
(
hModule
,
&
nameW
,
0
))
{
TRACE
(
"looking for res %s in module %p %s
\n
"
,
debugstr_w
(
resname
),
hModule
,
debugstr_w
(
nameW
.
Buffer
)
);
RtlFreeUnicodeString
(
&
nameW
);
}
else
TRACE
(
"looking for res %s in module %p %s
\n
"
,
debugstr_w
(
resname
),
hModule
,
debugstr_w
(
filename
)
);
}
if
(
!
resname
)
return
STATUS_INVALID_PARAMETER
;
...
...
@@ -1792,6 +1807,9 @@ static NTSTATUS lookup_assembly(struct actctx_loader* acl,
UNICODE_STRING
nameW
;
HANDLE
file
;
TRACE
(
"looking for name=%s version=%s arch=%s
\n
"
,
debugstr_w
(
ai
->
name
),
debugstr_version
(
&
ai
->
version
),
debugstr_w
(
ai
->
arch
)
);
if
((
status
=
lookup_winsxs
(
acl
,
ai
))
!=
STATUS_NO_SUCH_FILE
)
return
status
;
/* FIXME: add support for language specific lookup */
...
...
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