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
3aa2376f
Commit
3aa2376f
authored
Feb 17, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Make ITaskSettings a part of ITaskDefinition implementation.
parent
e29f6453
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
task.c
dlls/taskschd/task.c
+18
-2
taskschd_private.h
dlls/taskschd/taskschd_private.h
+6
-0
No files found.
dlls/taskschd/task.c
View file @
3aa2376f
...
...
@@ -601,6 +601,7 @@ static HRESULT TaskSettings_create(ITaskSettings **obj)
typedef
struct
{
ITaskDefinition
ITaskDefinition_iface
;
ITaskSettings
*
taskset
;
LONG
ref
;
}
TaskDefinition
;
...
...
@@ -623,6 +624,8 @@ static ULONG WINAPI TaskDefinition_Release(ITaskDefinition *iface)
if
(
!
ref
)
{
TRACE
(
"destroying %p
\n
"
,
iface
);
if
(
taskdef
->
taskset
)
ITaskSettings_Release
(
taskdef
->
taskset
);
heap_free
(
taskdef
);
}
...
...
@@ -702,11 +705,16 @@ 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
);
TRACE
(
"%p,%p
\n
"
,
iface
,
settings
);
if
(
!
settings
)
return
E_POINTER
;
return
TaskSettings_create
(
settings
);
ITaskSettings_AddRef
(
taskdef
->
taskset
);
*
settings
=
taskdef
->
taskset
;
return
S_OK
;
}
static
HRESULT
WINAPI
TaskDefinition_put_Settings
(
ITaskDefinition
*
iface
,
ITaskSettings
*
settings
)
...
...
@@ -1028,13 +1036,21 @@ static const ITaskDefinitionVtbl TaskDefinition_vtbl =
HRESULT
TaskDefinition_create
(
ITaskDefinition
**
obj
)
{
HRESULT
hr
;
TaskDefinition
*
taskdef
;
taskdef
=
heap_alloc
(
sizeof
(
*
taskdef
));
taskdef
=
heap_alloc
_zero
(
sizeof
(
*
taskdef
));
if
(
!
taskdef
)
return
E_OUTOFMEMORY
;
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
);
...
...
dlls/taskschd/taskschd_private.h
View file @
3aa2376f
...
...
@@ -31,6 +31,12 @@ HRESULT RegisteredTaskCollection_create(const WCHAR *path, IRegisteredTaskCollec
const
char
*
debugstr_variant
(
const
VARIANT
*
v
)
DECLSPEC_HIDDEN
;
static
void
*
heap_alloc_zero
(
SIZE_T
size
)
__WINE_ALLOC_SIZE
(
1
);
static
inline
void
*
heap_alloc_zero
(
SIZE_T
size
)
{
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
);
}
static
void
*
heap_alloc
(
SIZE_T
size
)
__WINE_ALLOC_SIZE
(
1
);
static
inline
void
*
heap_alloc
(
SIZE_T
size
)
{
...
...
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