mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 04:10:04 +00:00
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>
This commit is contained in:
parent
a549245dfc
commit
e16b9f757b
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user