Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
697d4a71
Commit
697d4a71
authored
Mar 06, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Allow explicitly specified asm.v2 namespace for "trustInfo".
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
105b3dc8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
7 deletions
+33
-7
actctx.c
dlls/kernel32/tests/actctx.c
+26
-0
actctx.c
dlls/ntdll/actctx.c
+7
-7
No files found.
dlls/kernel32/tests/actctx.c
View file @
697d4a71
...
@@ -299,6 +299,18 @@ static const char manifest9[] =
...
@@ -299,6 +299,18 @@ static const char manifest9[] =
"</trustInfo>"
"</trustInfo>"
"</assembly>"
;
"</assembly>"
;
static
const
char
manifest10
[]
=
"<assembly xmlns=
\"
urn:schemas-microsoft-com:asm.v1
\"
xmlns:asmv2=
\"
urn:schemas-microsoft-com:asm.v2
\"
manifestVersion=
\"
1.0
\"
>"
"<assemblyIdentity version=
\"
1.0.0.0
\"
name=
\"
Wine.Test
\"
type=
\"
win32
\"
></assemblyIdentity>"
"<asmv2:trustInfo>"
" <asmv2:security>"
" <asmv2:requestedPrivileges>"
" <asmv2:requestedExecutionLevel level=
\"
requireAdministrator
\"
uiAccess=
\"
true
\"
></asmv2:requestedExecutionLevel>"
" </asmv2:requestedPrivileges>"
" </asmv2:security>"
"</asmv2:trustInfo>"
"</assembly>"
;
static
const
char
testdep_manifest1
[]
=
static
const
char
testdep_manifest1
[]
=
"<assembly xmlns=
\"
urn:schemas-microsoft-com:asm.v1
\"
manifestVersion=
\"
1.0
\"
>"
"<assembly xmlns=
\"
urn:schemas-microsoft-com:asm.v1
\"
manifestVersion=
\"
1.0
\"
>"
"<assemblyIdentity type=
\"
win32
\"
name=
\"
testdep
\"
version=
\"
6.5.4.3
\"
processorArchitecture=
\"
"
ARCH
"
\"
/>"
"<assemblyIdentity type=
\"
win32
\"
name=
\"
testdep
\"
version=
\"
6.5.4.3
\"
processorArchitecture=
\"
"
ARCH
"
\"
/>"
...
@@ -2218,6 +2230,20 @@ static void test_actctx(void)
...
@@ -2218,6 +2230,20 @@ static void test_actctx(void)
else
else
skip
(
"Could not create manifest file 9
\n
"
);
skip
(
"Could not create manifest file 9
\n
"
);
if
(
create_manifest_file
(
"test10.manifest"
,
manifest10
,
-
1
,
NULL
,
NULL
))
{
handle
=
test_create
(
"test10.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
DeleteFileA
(
"test10.manifest"
);
DeleteFileA
(
"testdep.manifest"
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
test_runlevel_info
(
handle
,
&
runlevel_info8
,
__LINE__
);
pReleaseActCtx
(
handle
);
}
}
else
skip
(
"Could not create manifest file 10
\n
"
);
trace
(
"manifest4
\n
"
);
trace
(
"manifest4
\n
"
);
if
(
!
create_manifest_file
(
"test4.manifest"
,
manifest4
,
-
1
,
NULL
,
NULL
))
{
if
(
!
create_manifest_file
(
"test4.manifest"
,
manifest4
,
-
1
,
NULL
,
NULL
))
{
...
...
dlls/ntdll/actctx.c
View file @
697d4a71
...
@@ -2385,7 +2385,7 @@ static BOOL parse_requested_execution_level_elem(xmlbuf_t* xmlbuf, struct assemb
...
@@ -2385,7 +2385,7 @@ static BOOL parse_requested_execution_level_elem(xmlbuf_t* xmlbuf, struct assemb
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
{
{
if
(
xml
str_cmp_end
(
&
elem
,
requestedExecutionLevel
W
))
if
(
xml
_elem_cmp_end
(
&
elem
,
requestedExecutionLevelW
,
asmv2
W
))
{
{
ret
=
parse_end_element
(
xmlbuf
);
ret
=
parse_end_element
(
xmlbuf
);
break
;
break
;
...
@@ -2407,12 +2407,12 @@ static BOOL parse_requested_privileges_elem(xmlbuf_t* xmlbuf, struct assembly* a
...
@@ -2407,12 +2407,12 @@ static BOOL parse_requested_privileges_elem(xmlbuf_t* xmlbuf, struct assembly* a
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
{
{
if
(
xml
str_cmp_end
(
&
elem
,
requestedPrivileges
W
))
if
(
xml
_elem_cmp_end
(
&
elem
,
requestedPrivilegesW
,
asmv2
W
))
{
{
ret
=
parse_end_element
(
xmlbuf
);
ret
=
parse_end_element
(
xmlbuf
);
break
;
break
;
}
}
else
if
(
xml
str_cmp
(
&
elem
,
requestedExecutionLevel
W
))
else
if
(
xml
_elem_cmp
(
&
elem
,
requestedExecutionLevelW
,
asmv2
W
))
ret
=
parse_requested_execution_level_elem
(
xmlbuf
,
assembly
,
acl
);
ret
=
parse_requested_execution_level_elem
(
xmlbuf
,
assembly
,
acl
);
else
else
{
{
...
@@ -2431,12 +2431,12 @@ static BOOL parse_security_elem(xmlbuf_t *xmlbuf, struct assembly *assembly, str
...
@@ -2431,12 +2431,12 @@ static BOOL parse_security_elem(xmlbuf_t *xmlbuf, struct assembly *assembly, str
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
{
{
if
(
xml
str_cmp_end
(
&
elem
,
security
W
))
if
(
xml
_elem_cmp_end
(
&
elem
,
securityW
,
asmv2
W
))
{
{
ret
=
parse_end_element
(
xmlbuf
);
ret
=
parse_end_element
(
xmlbuf
);
break
;
break
;
}
}
else
if
(
xml
str_cmp
(
&
elem
,
requestedPrivileges
W
))
else
if
(
xml
_elem_cmp
(
&
elem
,
requestedPrivilegesW
,
asmv2
W
))
ret
=
parse_requested_privileges_elem
(
xmlbuf
,
assembly
,
acl
);
ret
=
parse_requested_privileges_elem
(
xmlbuf
,
assembly
,
acl
);
else
else
{
{
...
@@ -2455,12 +2455,12 @@ static BOOL parse_trust_info_elem(xmlbuf_t *xmlbuf, struct assembly *assembly, s
...
@@ -2455,12 +2455,12 @@ static BOOL parse_trust_info_elem(xmlbuf_t *xmlbuf, struct assembly *assembly, s
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
while
(
ret
&&
(
ret
=
next_xml_elem
(
xmlbuf
,
&
elem
)))
{
{
if
(
xml
str_cmp_end
(
&
elem
,
trustInfo
W
))
if
(
xml
_elem_cmp_end
(
&
elem
,
trustInfoW
,
asmv2
W
))
{
{
ret
=
parse_end_element
(
xmlbuf
);
ret
=
parse_end_element
(
xmlbuf
);
break
;
break
;
}
}
else
if
(
xml
str_cmp
(
&
elem
,
security
W
))
else
if
(
xml
_elem_cmp
(
&
elem
,
securityW
,
asmv2
W
))
ret
=
parse_security_elem
(
xmlbuf
,
assembly
,
acl
);
ret
=
parse_security_elem
(
xmlbuf
,
assembly
,
acl
);
else
else
{
{
...
...
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