[MSTASK_WINETEST] Sync with Wine Staging 2.9. CORE-13362

svn path=/trunk/; revision=74820
This commit is contained in:
Amine Khaldi 2017-06-03 22:30:32 +00:00
parent 4988f293f8
commit 7a5517640f

View file

@ -184,6 +184,11 @@ static void test_SetTargetComputer(void)
/* the two backslashes are optional */
hres = ITaskScheduler_SetTargetComputer(test_task_scheduler, oldname + 2);
if (hres == E_ACCESSDENIED)
{
skip("SetTargetComputer failed with E_ACCESSDENIED (needs admin rights)\n");
goto done;
}
ok(hres == S_OK, "got 0x%x (expected S_OK)\n", hres);
/* the case is ignored */
@ -198,6 +203,7 @@ static void test_SetTargetComputer(void)
hres = ITaskScheduler_SetTargetComputer(test_task_scheduler, oldname);
ok(hres == S_OK, "got 0x%x (expected S_OK)\n", hres);
done:
CoTaskMemFree(oldname);
ITaskScheduler_Release(test_task_scheduler);
return;