From 2c1a68e35c35d0d2c771d97412850d388abfc47b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 16 Dec 2021 18:28:33 +0100 Subject: [PATCH] schedsvc/tests: Fix a test failure on recent Windows versions. Signed-off-by: Alexandre Julliard --- dlls/schedsvc/tests/rpcapi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/schedsvc/tests/rpcapi.c b/dlls/schedsvc/tests/rpcapi.c index b806b97539d..a8f75ded7a5 100644 --- a/dlls/schedsvc/tests/rpcapi.c +++ b/dlls/schedsvc/tests/rpcapi.c @@ -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);