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
1e108423
Commit
1e108423
authored
Jan 01, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix manifest attribute parsing.
parent
b6ba53e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
actctx.c
dlls/kernel32/tests/actctx.c
+12
-0
actctx.c
dlls/ntdll/actctx.c
+11
-1
No files found.
dlls/kernel32/tests/actctx.c
View file @
1e108423
...
...
@@ -74,6 +74,11 @@ static const char manifest1[] =
"<assemblyIdentity version=
\"
1.0.0.0
\"
name=
\"
Wine.Test
\"
type=
\"
win32
\"
></assemblyIdentity>"
"</assembly>"
;
static
const
char
manifest1_1
[]
=
"<assembly xmlns =
\"
urn:schemas-microsoft-com:asm.v1
\"
manifestVersion =
\"
1.0
\"
>"
"<assemblyIdentity version =
\"
1.0.0.0
\"
name =
\"
Wine.Test
\"
type =
\"
win32
\"
></assemblyIdentity>"
"</assembly>"
;
static
const
char
manifest2
[]
=
"<assembly xmlns=
\"
urn:schemas-microsoft-com:asm.v1
\"
manifestVersion=
\"
1.0
\"
>"
"<assemblyIdentity version=
\"
1.2.3.4
\"
name=
\"
Wine.Test
\"
type=
\"
win32
\"
>"
...
...
@@ -1748,6 +1753,13 @@ static void test_actctx(void)
pReleaseActCtx
(
handle
);
}
/* test for whitespace handling in Eq ::= S? '=' S? */
create_manifest_file
(
"test1_1.manifest"
,
manifest1_1
,
-
1
,
NULL
,
NULL
);
handle
=
test_create
(
"test1_1.manifest"
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"got %p
\n
"
,
handle
);
DeleteFileA
(
"test1_1.manifest"
);
pReleaseActCtx
(
handle
);
if
(
!
create_manifest_file
(
"test1.manifest"
,
manifest1
,
-
1
,
NULL
,
NULL
))
{
skip
(
"Could not create manifest file
\n
"
);
return
;
...
...
dlls/ntdll/actctx.c
View file @
1e108423
...
...
@@ -1125,13 +1125,23 @@ static BOOL next_xml_attr(xmlbuf_t* xmlbuf, xmlstr_t* name, xmlstr_t* value,
ptr
=
xmlbuf
->
ptr
;
while
(
ptr
<
xmlbuf
->
end
&&
*
ptr
!=
'='
&&
*
ptr
!=
'>'
&&
!
isxmlspace
(
*
ptr
))
ptr
++
;
if
(
ptr
==
xmlbuf
->
end
||
*
ptr
!=
'='
)
return
FALSE
;
if
(
ptr
==
xmlbuf
->
end
)
return
FALSE
;
name
->
ptr
=
xmlbuf
->
ptr
;
name
->
len
=
ptr
-
xmlbuf
->
ptr
;
xmlbuf
->
ptr
=
ptr
;
/* skip spaces before '=' */
while
(
ptr
<
xmlbuf
->
end
&&
*
ptr
!=
'='
&&
isxmlspace
(
*
ptr
))
ptr
++
;
if
(
ptr
==
xmlbuf
->
end
||
*
ptr
!=
'='
)
return
FALSE
;
/* skip '=' itself */
ptr
++
;
if
(
ptr
==
xmlbuf
->
end
)
return
FALSE
;
/* skip spaces after '=' */
while
(
ptr
<
xmlbuf
->
end
&&
*
ptr
!=
'"'
&&
*
ptr
!=
'\''
&&
isxmlspace
(
*
ptr
))
ptr
++
;
if
(
ptr
==
xmlbuf
->
end
||
(
*
ptr
!=
'"'
&&
*
ptr
!=
'\''
))
return
FALSE
;
value
->
ptr
=
++
ptr
;
...
...
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