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
7d95758e
Commit
7d95758e
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: Make IRegistrationInfo a part of ITaskDefinition implementation.
parent
257a3bb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
5 deletions
+34
-5
task.c
dlls/taskschd/task.c
+34
-5
No files found.
dlls/taskschd/task.c
View file @
7d95758e
...
...
@@ -248,7 +248,7 @@ static const IRegistrationInfoVtbl RegistrationInfo_vtbl =
RegistrationInfo_put_Source
};
HRESULT
RegistrationInfo_create
(
IRegistrationInfo
**
obj
)
static
HRESULT
RegistrationInfo_create
(
IRegistrationInfo
**
obj
)
{
registration_info
*
reginfo
;
...
...
@@ -832,6 +832,7 @@ static HRESULT TaskSettings_create(ITaskSettings **obj)
typedef
struct
{
ITaskDefinition
ITaskDefinition_iface
;
IRegistrationInfo
*
reginfo
;
ITaskSettings
*
taskset
;
LONG
ref
;
}
TaskDefinition
;
...
...
@@ -855,6 +856,8 @@ static ULONG WINAPI TaskDefinition_Release(ITaskDefinition *iface)
if
(
!
ref
)
{
TRACE
(
"destroying %p
\n
"
,
iface
);
if
(
taskdef
->
reginfo
)
IRegistrationInfo_Release
(
taskdef
->
reginfo
);
if
(
taskdef
->
taskset
)
ITaskSettings_Release
(
taskdef
->
taskset
);
heap_free
(
taskdef
);
...
...
@@ -912,14 +915,40 @@ static HRESULT WINAPI TaskDefinition_Invoke(ITaskDefinition *iface, DISPID dispi
static
HRESULT
WINAPI
TaskDefinition_get_RegistrationInfo
(
ITaskDefinition
*
iface
,
IRegistrationInfo
**
info
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
info
);
return
E_NOTIMPL
;
TaskDefinition
*
taskdef
=
impl_from_ITaskDefinition
(
iface
);
HRESULT
hr
;
TRACE
(
"%p,%p
\n
"
,
iface
,
info
);
if
(
!
info
)
return
E_POINTER
;
if
(
!
taskdef
->
reginfo
)
{
hr
=
RegistrationInfo_create
(
&
taskdef
->
reginfo
);
if
(
hr
!=
S_OK
)
return
hr
;
}
IRegistrationInfo_AddRef
(
taskdef
->
reginfo
);
*
info
=
taskdef
->
reginfo
;
return
S_OK
;
}
static
HRESULT
WINAPI
TaskDefinition_put_RegistrationInfo
(
ITaskDefinition
*
iface
,
IRegistrationInfo
*
info
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
info
);
return
E_NOTIMPL
;
TaskDefinition
*
taskdef
=
impl_from_ITaskDefinition
(
iface
);
TRACE
(
"%p,%p
\n
"
,
iface
,
info
);
if
(
!
info
)
return
E_POINTER
;
if
(
taskdef
->
reginfo
)
IRegistrationInfo_Release
(
taskdef
->
reginfo
);
IRegistrationInfo_AddRef
(
info
);
taskdef
->
reginfo
=
info
;
return
S_OK
;
}
static
HRESULT
WINAPI
TaskDefinition_get_Triggers
(
ITaskDefinition
*
iface
,
ITriggerCollection
**
triggers
)
...
...
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