Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8f81fa82
Commit
8f81fa82
authored
Apr 02, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Store creator using IRegistrationInfo.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6ff9f7e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
10 deletions
+50
-10
task.c
dlls/mstask/task.c
+50
-10
No files found.
dlls/mstask/task.c
View file @
8f81fa82
...
...
@@ -301,20 +301,60 @@ static HRESULT WINAPI MSTASK_ITask_GetComment(ITask *iface, LPWSTR *comment)
return
hr
;
}
static
HRESULT
WINAPI
MSTASK_ITask_SetCreator
(
ITask
*
iface
,
LPCWSTR
pwszCreator
)
static
HRESULT
WINAPI
MSTASK_ITask_SetCreator
(
ITask
*
iface
,
LPCWSTR
creator
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
iface
,
pwszCreator
);
return
E_NOTIMPL
;
TaskImpl
*
This
=
impl_from_ITask
(
iface
);
IRegistrationInfo
*
info
;
HRESULT
hr
;
TRACE
(
"(%p, %s)
\n
"
,
iface
,
debugstr_w
(
creator
));
if
(
!
creator
||
!
creator
[
0
])
creator
=
NULL
;
hr
=
ITaskDefinition_get_RegistrationInfo
(
This
->
task
,
&
info
);
if
(
hr
==
S_OK
)
{
hr
=
IRegistrationInfo_put_Author
(
info
,
(
BSTR
)
creator
);
IRegistrationInfo_Release
(
info
);
}
return
hr
;
}
static
HRESULT
WINAPI
MSTASK_ITask_GetCreator
(
ITask
*
iface
,
LPWSTR
*
ppwszCreator
)
static
HRESULT
WINAPI
MSTASK_ITask_GetCreator
(
ITask
*
iface
,
LPWSTR
*
creator
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
iface
,
ppwszCreator
);
return
E_NOTIMPL
;
TaskImpl
*
This
=
impl_from_ITask
(
iface
);
IRegistrationInfo
*
info
;
HRESULT
hr
;
BSTR
author
;
DWORD
len
;
TRACE
(
"(%p, %p)
\n
"
,
iface
,
creator
);
hr
=
ITaskDefinition_get_RegistrationInfo
(
This
->
task
,
&
info
);
if
(
hr
!=
S_OK
)
return
hr
;
hr
=
IRegistrationInfo_get_Author
(
info
,
&
author
);
if
(
hr
==
S_OK
)
{
len
=
author
?
lstrlenW
(
author
)
+
1
:
1
;
*
creator
=
CoTaskMemAlloc
(
len
*
sizeof
(
WCHAR
));
if
(
*
creator
)
{
if
(
!
author
)
*
creator
[
0
]
=
0
;
else
lstrcpyW
(
*
creator
,
author
);
hr
=
S_OK
;
}
else
hr
=
E_OUTOFMEMORY
;
SysFreeString
(
author
);
}
IRegistrationInfo_Release
(
info
);
return
hr
;
}
static
HRESULT
WINAPI
MSTASK_ITask_SetWorkItemData
(
...
...
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