Module: wine Branch: master Commit: 2c1a68e35c35d0d2c771d97412850d388abfc47b URL: https://source.winehq.org/git/wine.git/?a=commit;h=2c1a68e35c35d0d2c771d9741...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Dec 16 18:28:33 2021 +0100
schedsvc/tests: Fix a test failure on recent Windows versions.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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);