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
e16b9f75
Commit
e16b9f75
authored
8 years ago
by
Sebastian Lackner
Committed by
Alexandre Julliard
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Do not return ERROR_* constant in HRESULT function.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a549245d
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
folder.c
dlls/taskschd/folder.c
+1
-1
scheduler.c
dlls/taskschd/tests/scheduler.c
+0
-2
No files found.
dlls/taskschd/folder.c
View file @
e16b9f75
...
...
@@ -417,7 +417,7 @@ HRESULT TaskFolder_create(const WCHAR *parent, const WCHAR *path, ITaskFolder **
if
(
path
)
{
int
len
=
strlenW
(
path
);
if
(
len
&&
path
[
len
-
1
]
==
'\\'
)
return
ERROR_INVALID_NAME
;
if
(
len
&&
path
[
len
-
1
]
==
'\\'
)
return
HRESULT_FROM_WIN32
(
ERROR_INVALID_NAME
)
;
}
folder_path
=
get_full_path
(
parent
,
path
);
...
...
This diff is collapsed.
Click to expand it.
dlls/taskschd/tests/scheduler.c
View file @
e16b9f75
...
...
@@ -217,7 +217,6 @@ todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_ALREADY_EXISTS
),
"expected ERROR_ALREADY_EXISTS, got %#x
\n
"
,
hr
);
hr
=
ITaskFolder_CreateFolder
(
folder
,
Wine_Folder1_
,
v_null
,
&
subfolder
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INVALID_NAME
),
"expected ERROR_INVALID_NAME, got %#x
\n
"
,
hr
);
hr
=
ITaskFolder_CreateFolder
(
folder
,
Wine
,
v_null
,
&
subfolder
);
...
...
@@ -297,7 +296,6 @@ todo_wine
SysFreeString
(
bstr
);
hr
=
ITaskFolder_GetFolder
(
subfolder
,
bslash
,
&
subfolder2
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INVALID_NAME
),
"expected ERROR_INVALID_NAME, got %#x
\n
"
,
hr
);
hr
=
ITaskFolder_GetFolder
(
subfolder
,
NULL
,
&
subfolder2
);
...
...
This diff is collapsed.
Click to expand it.
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