Author: akhaldi
Date: Sat Jun 3 22:30:32 2017
New Revision: 74820
URL:
http://svn.reactos.org/svn/reactos?rev=74820&view=rev
Log:
[MSTASK_WINETEST] Sync with Wine Staging 2.9. CORE-13362
Modified:
trunk/rostests/winetests/mstask/task_scheduler.c
Modified: trunk/rostests/winetests/mstask/task_scheduler.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/mstask/task_sch…
==============================================================================
--- trunk/rostests/winetests/mstask/task_scheduler.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/mstask/task_scheduler.c [iso-8859-1] Sat Jun 3 22:30:32
2017
@@ -184,6 +184,11 @@
/* 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 @@
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;