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
b6a3e9be
Commit
b6a3e9be
authored
Mar 07, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schedsvc: Implement SchRpcDelete.
parent
3266b490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
schedsvc.c
dlls/schedsvc/schedsvc.c
+22
-2
No files found.
dlls/schedsvc/schedsvc.c
View file @
b6a3e9be
...
...
@@ -197,8 +197,28 @@ HRESULT __cdecl SchRpcRun(const WCHAR *path, DWORD n_args, const WCHAR **args, D
HRESULT
__cdecl
SchRpcDelete
(
const
WCHAR
*
path
,
DWORD
flags
)
{
WINE_FIXME
(
"%s,%#x: stub
\n
"
,
wine_dbgstr_w
(
path
),
flags
);
return
E_NOTIMPL
;
WCHAR
*
full_name
;
HRESULT
hr
=
S_OK
;
WINE_TRACE
(
"%s,%#x
\n
"
,
wine_dbgstr_w
(
path
),
flags
);
if
(
flags
)
return
E_INVALIDARG
;
while
(
*
path
==
'\\'
||
*
path
==
'/'
)
path
++
;
if
(
!*
path
)
return
E_ACCESSDENIED
;
full_name
=
get_full_name
(
path
,
NULL
);
if
(
!
full_name
)
return
E_OUTOFMEMORY
;
if
(
!
RemoveDirectoryW
(
full_name
))
{
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
if
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_DIRECTORY
))
hr
=
DeleteFileW
(
full_name
)
?
S_OK
:
HRESULT_FROM_WIN32
(
GetLastError
());
}
heap_free
(
full_name
);
return
hr
;
}
HRESULT
__cdecl
SchRpcRename
(
const
WCHAR
*
path
,
const
WCHAR
*
name
,
DWORD
flags
)
...
...
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