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
ce0d9956
Commit
ce0d9956
authored
Apr 25, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implement IPersistFile::GetCurFile().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
caafc3c6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
task.c
dlls/mstask/task.c
+10
-5
task_scheduler.c
dlls/mstask/tests/task_scheduler.c
+0
-4
No files found.
dlls/mstask/task.c
View file @
ce0d9956
...
...
@@ -1069,12 +1069,17 @@ static HRESULT WINAPI MSTASK_IPersistFile_SaveCompleted(
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MSTASK_IPersistFile_GetCurFile
(
IPersistFile
*
iface
,
LPOLESTR
*
ppszFileName
)
static
HRESULT
WINAPI
MSTASK_IPersistFile_GetCurFile
(
IPersistFile
*
iface
,
LPOLESTR
*
file_name
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
iface
,
ppszFileName
);
return
E_NOTIMPL
;
TaskImpl
*
This
=
impl_from_IPersistFile
(
iface
);
TRACE
(
"(%p, %p)
\n
"
,
iface
,
file_name
);
*
file_name
=
CoTaskMemAlloc
((
strlenW
(
This
->
task_name
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!*
file_name
)
return
E_OUTOFMEMORY
;
strcpyW
(
*
file_name
,
This
->
task_name
);
return
S_OK
;
}
static
const
ITaskVtbl
MSTASK_ITaskVtbl
=
...
...
dlls/mstask/tests/task_scheduler.c
View file @
ce0d9956
...
...
@@ -284,9 +284,7 @@ static WCHAR *get_task_curfile(ITask *task)
ok
(
hr
==
S_OK
,
"QueryInterface error %#x
\n
"
,
hr
);
curfile
=
NULL
;
hr
=
IPersistFile_GetCurFile
(
pfile
,
&
curfile
);
todo_wine
ok
(
hr
==
S_OK
,
"GetCurFile error %#x
\n
"
,
hr
);
todo_wine
ok
(
curfile
&&
curfile
[
0
]
,
"curfile should not be NULL
\n
"
);
if
(
0
)
/* crashes under Windows */
...
...
@@ -326,7 +324,6 @@ static void test_task_storage(void)
curfile
=
get_task_curfile
(
task
);
ok
(
!
file_exists
(
curfile
),
"curfile should not exist
\n
"
);
todo_wine
ok
(
!
lstrcmpW
(
curfile
,
task_full_name
),
"name is wrong %s
\n
"
,
wine_dbgstr_w
(
curfile
));
hr
=
ITaskScheduler_NewWorkItem
(
scheduler
,
Task1
,
&
CLSID_CTask
,
&
IID_ITask
,
(
IUnknown
**
)
&
task2
);
...
...
@@ -335,7 +332,6 @@ todo_wine
curfile2
=
get_task_curfile
(
task
);
ok
(
!
file_exists
(
curfile2
),
"curfile2 should not exist
\n
"
);
todo_wine
ok
(
!
lstrcmpW
(
curfile2
,
task_full_name
),
"name is wrong %s
\n
"
,
wine_dbgstr_w
(
curfile2
));
CoTaskMemFree
(
curfile
);
...
...
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