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
9c6e7dea
Commit
9c6e7dea
authored
Feb 19, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Delay creation of ITaskSettings until it's required.
parent
7d95758e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
task.c
dlls/taskschd/task.c
+9
-9
No files found.
dlls/taskschd/task.c
View file @
9c6e7dea
...
...
@@ -966,11 +966,18 @@ static HRESULT WINAPI TaskDefinition_put_Triggers(ITaskDefinition *iface, ITrigg
static
HRESULT
WINAPI
TaskDefinition_get_Settings
(
ITaskDefinition
*
iface
,
ITaskSettings
**
settings
)
{
TaskDefinition
*
taskdef
=
impl_from_ITaskDefinition
(
iface
);
HRESULT
hr
;
TRACE
(
"%p,%p
\n
"
,
iface
,
settings
);
if
(
!
settings
)
return
E_POINTER
;
if
(
!
taskdef
->
taskset
)
{
hr
=
TaskSettings_create
(
&
taskdef
->
taskset
);
if
(
hr
!=
S_OK
)
return
hr
;
}
ITaskSettings_AddRef
(
taskdef
->
taskset
);
*
settings
=
taskdef
->
taskset
;
...
...
@@ -985,7 +992,8 @@ static HRESULT WINAPI TaskDefinition_put_Settings(ITaskDefinition *iface, ITaskS
if
(
!
settings
)
return
E_POINTER
;
ITaskSettings_Release
(
taskdef
->
taskset
);
if
(
taskdef
->
taskset
)
ITaskSettings_Release
(
taskdef
->
taskset
);
ITaskSettings_AddRef
(
settings
);
taskdef
->
taskset
=
settings
;
...
...
@@ -1524,7 +1532,6 @@ static const ITaskDefinitionVtbl TaskDefinition_vtbl =
HRESULT
TaskDefinition_create
(
ITaskDefinition
**
obj
)
{
HRESULT
hr
;
TaskDefinition
*
taskdef
;
taskdef
=
heap_alloc_zero
(
sizeof
(
*
taskdef
));
...
...
@@ -1532,13 +1539,6 @@ HRESULT TaskDefinition_create(ITaskDefinition **obj)
taskdef
->
ITaskDefinition_iface
.
lpVtbl
=
&
TaskDefinition_vtbl
;
taskdef
->
ref
=
1
;
hr
=
TaskSettings_create
(
&
taskdef
->
taskset
);
if
(
hr
!=
S_OK
)
{
ITaskDefinition_Release
(
&
taskdef
->
ITaskDefinition_iface
);
return
hr
;
}
*
obj
=
&
taskdef
->
ITaskDefinition_iface
;
TRACE
(
"created %p
\n
"
,
*
obj
);
...
...
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