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
a4c4574b
Commit
a4c4574b
authored
Jan 20, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Implement ITaskFolder::get_Name.
parent
3003ee9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
folder.c
dlls/taskschd/folder.c
+17
-2
scheduler.c
dlls/taskschd/tests/scheduler.c
+0
-5
No files found.
dlls/taskschd/folder.c
View file @
a4c4574b
...
...
@@ -115,8 +115,23 @@ static HRESULT WINAPI TaskFolder_Invoke(ITaskFolder *iface, DISPID dispid, REFII
static
HRESULT
WINAPI
TaskFolder_get_Name
(
ITaskFolder
*
iface
,
BSTR
*
name
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
name
);
return
E_NOTIMPL
;
TaskFolder
*
folder
=
impl_from_ITaskFolder
(
iface
);
const
WCHAR
*
p_name
;
TRACE
(
"%p,%p
\n
"
,
iface
,
name
);
if
(
!
name
)
return
E_POINTER
;
p_name
=
strrchrW
(
folder
->
path
,
'\\'
);
if
(
!
p_name
)
p_name
=
folder
->
path
;
else
if
(
p_name
[
1
]
!=
0
)
p_name
++
;
*
name
=
SysAllocString
(
p_name
);
if
(
!*
name
)
return
E_OUTOFMEMORY
;
return
S_OK
;
}
static
HRESULT
reg_open_folder
(
const
WCHAR
*
path
,
HKEY
*
hfolder
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
a4c4574b
...
...
@@ -169,17 +169,12 @@ todo_wine
ok
(
hr
==
S_OK
,
"GetFolder error %#x
\n
"
,
hr
);
hr
=
ITaskFolder_get_Name
(
folder
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"expected E_POINTER, got %#x
\n
"
,
hr
);
hr
=
ITaskFolder_get_Name
(
folder
,
&
bstr
);
todo_wine
ok
(
hr
==
S_OK
,
"get_Name error %#x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
!
lstrcmpW
(
bstr
,
bslash
),
"expected '
\\
', got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
}
hr
=
ITaskFolder_get_Path
(
folder
,
NULL
);
ok
(
hr
==
E_POINTER
,
"expected E_POINTER, got %#x
\n
"
,
hr
);
...
...
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