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
39f0b276
Commit
39f0b276
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: Don't accept task XML with an invalid boolean value.
parent
d2fc6b31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
23 deletions
+22
-23
task.c
dlls/taskschd/task.c
+22
-22
scheduler.c
dlls/taskschd/tests/scheduler.c
+0
-1
No files found.
dlls/taskschd/task.c
View file @
39f0b276
...
...
@@ -1553,8 +1553,8 @@ static HRESULT read_variantbool_value(IXmlReader *reader, VARIANT_BOOL *vbool)
*
vbool
=
VARIANT_FALSE
;
else
{
FIXME
(
"unexpected bool value %s
\n
"
,
debugstr_w
(
value
));
return
E_FAIL
;
WARN
(
"unexpected bool value %s
\n
"
,
debugstr_w
(
value
));
return
SCHED_E_INVALIDVALUE
;
}
return
S_OK
;
...
...
@@ -1826,62 +1826,62 @@ static HRESULT read_settings(IXmlReader *reader, ITaskSettings *taskset)
else
if
(
!
lstrcmpW
(
name
,
DisallowStartIfOnBatteries
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_DisallowStartIfOnBatteries
(
taskset
,
bool_val
);
if
(
hr
!=
S_OK
)
return
hr
;
ITaskSettings_put_DisallowStartIfOnBatteries
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
AllowStartOnDemand
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_AllowDemandStart
(
taskset
,
bool_val
);
if
(
hr
!=
S_OK
)
return
hr
;
ITaskSettings_put_AllowDemandStart
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
StopIfGoingOnBatteries
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_StopIfGoingOnBatteries
(
taskset
,
bool_val
);
if
(
hr
!=
S_OK
)
return
hr
;
ITaskSettings_put_StopIfGoingOnBatteries
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
AllowHardTerminate
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_AllowHardTerminate
(
taskset
,
bool_val
);
if
(
hr
!=
S_OK
)
return
hr
;
ITaskSettings_put_AllowHardTerminate
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
StartWhenAvailable
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_StartWhenAvailable
(
taskset
,
bool_val
);
if
(
hr
!=
S_OK
)
return
hr
;
ITaskSettings_put_StartWhenAvailable
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
RunOnlyIfNetworkAvailable
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_RunOnlyIfNetworkAvailable
(
taskset
,
bool_val
);
if
(
hr
!=
S_OK
)
return
hr
;
ITaskSettings_put_RunOnlyIfNetworkAvailable
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
Enabled
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_Enabled
(
taskset
,
bool_val
);
if
(
hr
!=
S_OK
)
return
hr
;
ITaskSettings_put_Enabled
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
Hidden
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_Hidden
(
taskset
,
bool_val
);
if
(
hr
!=
S_OK
)
return
hr
;
ITaskSettings_put_Hidden
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
RunOnlyIfIdle
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_RunOnlyIfIdle
(
taskset
,
bool_val
);
if
(
hr
!=
S_OK
)
return
hr
;
ITaskSettings_put_RunOnlyIfIdle
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
WakeToRun
))
{
hr
=
read_variantbool_value
(
reader
,
&
bool_val
);
if
(
hr
==
S_OK
)
ITaskSettings_put_WakeToRun
(
taskset
,
bool_val
);
if
(
hr
!=
S_OK
)
return
hr
;
ITaskSettings_put_WakeToRun
(
taskset
,
bool_val
);
}
else
if
(
!
lstrcmpW
(
name
,
ExecutionTimeLimit
))
{
...
...
dlls/taskschd/tests/scheduler.c
View file @
39f0b276
...
...
@@ -1246,7 +1246,6 @@ todo_wine
MultiByteToWideChar
(
CP_ACP
,
0
,
xml7
,
-
1
,
xmlW
,
sizeof
(
xmlW
)
/
sizeof
(
xmlW
[
0
]));
hr
=
ITaskDefinition_put_XmlText
(
taskdef
,
xmlW
);
todo_wine
ok
(
hr
==
SCHED_E_INVALIDVALUE
,
"expected SCHED_E_INVALIDVALUE, got %#x
\n
"
,
hr
);
ITaskDefinition_Release
(
taskdef
);
...
...
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