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
aec0eb87
Commit
aec0eb87
authored
Aug 21, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Aug 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Task PersistFile AddRef, QueryInterface, and Release.
parent
2841755c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
task.c
dlls/mstask/task.c
+26
-6
No files found.
dlls/mstask/task.c
View file @
aec0eb87
...
...
@@ -21,6 +21,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mstask
);
static
inline
TaskImpl
*
impl_from_IPersistFile
(
IPersistFile
*
iface
)
{
return
(
TaskImpl
*
)
((
char
*
)(
iface
)
-
FIELD_OFFSET
(
TaskImpl
,
persistVtbl
));
}
static
void
TaskDestructor
(
TaskImpl
*
This
)
{
TRACE
(
"%p
\n
"
,
This
);
...
...
@@ -47,6 +52,12 @@ static HRESULT WINAPI MSTASK_ITask_QueryInterface(
ITask_AddRef
(
iface
);
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IPersistFile
))
{
*
ppvObject
=
&
This
->
persistVtbl
;
ITask_AddRef
(
iface
);
return
S_OK
;
}
WARN
(
"Unknown interface: %s
\n
"
,
debugstr_guid
(
riid
));
*
ppvObject
=
NULL
;
...
...
@@ -473,22 +484,31 @@ static HRESULT WINAPI MSTASK_IPersistFile_QueryInterface(
REFIID
riid
,
void
**
ppvObject
)
{
FIXME
(
"(%p, %s, %p): stub
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppvObject
);
return
E_NOTIMPL
;
TaskImpl
*
This
=
impl_from_IPersistFile
(
iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppvObject
);
return
ITask_QueryInterface
((
ITask
*
)
This
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
MSTASK_IPersistFile_AddRef
(
IPersistFile
*
iface
)
{
FIXME
(
"(%p): stub
\n
"
,
iface
);
return
E_NOTIMPL
;
TaskImpl
*
This
=
impl_from_IPersistFile
(
iface
);
ULONG
ref
;
TRACE
(
"
\n
"
);
ref
=
InterlockedIncrement
(
&
This
->
ref
);
return
ref
;
}
static
ULONG
WINAPI
MSTASK_IPersistFile_Release
(
IPersistFile
*
iface
)
{
FIXME
(
"(%p): stub
\n
"
,
iface
);
return
E_NOTIMPL
;
TaskImpl
*
This
=
impl_from_IPersistFile
(
iface
);
ULONG
ref
;
TRACE
(
"
\n
"
);
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
TaskDestructor
(
This
);
return
ref
;
}
static
HRESULT
WINAPI
MSTASK_IPersistFile_GetClassID
(
...
...
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