schedsvc/tests: Fix a test failure on recent Windows versions.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-12-16 18:28:33 +01:00
parent f08eb97c48
commit 2c1a68e35c
1 changed files with 4 additions and 1 deletions

View File

@ -520,7 +520,10 @@ todo_wine
if (hr != E_ACCESSDENIED)
{
ok(!info, "expected NULL, info %p\n", info);
hr = IIDFromString(path, &iid);
if (path[0] == '\\')
hr = IIDFromString(path + 1, &iid);
else
hr = IIDFromString(path, &iid);
ok(hr == S_OK, "IIDFromString(%s) error %#x\n", wine_dbgstr_w(path), hr);
hr = SchRpcDelete(path, 0);
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);