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
d2fc6b31
Commit
d2fc6b31
authored
Feb 25, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Add a check for the task namespace.
parent
1c778d91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
task.c
dlls/taskschd/task.c
+6
-1
scheduler.c
dlls/taskschd/tests/scheduler.c
+0
-1
No files found.
dlls/taskschd/task.c
View file @
d2fc6b31
...
...
@@ -1990,6 +1990,7 @@ static HRESULT read_task_attributes(IXmlReader *reader, ITaskDefinition *taskdef
ITaskSettings
*
taskset
;
const
WCHAR
*
name
;
const
WCHAR
*
value
;
BOOL
xmlns_ok
=
FALSE
;
TRACE
(
"
\n
"
);
...
...
@@ -2028,7 +2029,11 @@ static HRESULT read_task_attributes(IXmlReader *reader, ITaskDefinition *taskdef
else
if
(
!
lstrcmpW
(
name
,
xmlns
))
{
if
(
lstrcmpW
(
value
,
task_ns
))
{
FIXME
(
"unknown namespace %s
\n
"
,
debugstr_w
(
value
));
break
;
}
xmlns_ok
=
TRUE
;
}
else
FIXME
(
"unhandled Task attribute %s
\n
"
,
debugstr_w
(
name
));
...
...
@@ -2037,7 +2042,7 @@ static HRESULT read_task_attributes(IXmlReader *reader, ITaskDefinition *taskdef
}
ITaskSettings_Release
(
taskset
);
return
S_OK
;
return
xmlns_ok
?
S_OK
:
SCHED_E_NAMESPACE
;
}
static
HRESULT
read_task
(
IXmlReader
*
reader
,
ITaskDefinition
*
taskdef
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
d2fc6b31
...
...
@@ -1223,7 +1223,6 @@ static void test_TaskDefinition(void)
MultiByteToWideChar
(
CP_ACP
,
0
,
xml2
,
-
1
,
xmlW
,
sizeof
(
xmlW
)
/
sizeof
(
xmlW
[
0
]));
hr
=
ITaskDefinition_put_XmlText
(
taskdef
,
xmlW
);
todo_wine
ok
(
hr
==
SCHED_E_NAMESPACE
,
"expected SCHED_E_NAMESPACE, got %#x
\n
"
,
hr
);
MultiByteToWideChar
(
CP_ACP
,
0
,
xml3
,
-
1
,
xmlW
,
sizeof
(
xmlW
)
/
sizeof
(
xmlW
[
0
]));
...
...
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