Commit f7018111 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

mstask: Actually run a test and fix the expected behaviour.

parent b69811f5
......@@ -138,8 +138,6 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_SetTrigger(
if (pTrigger->MinutesDuration <= pTrigger->MinutesInterval &&
pTrigger->MinutesInterval > 0)
return E_INVALIDARG;
if (pTrigger->MinutesDuration > 0 && pTrigger->MinutesInterval == 0)
return E_INVALIDARG;
tmp_trigger_cond.MinutesDuration = pTrigger->MinutesDuration;
tmp_trigger_cond.MinutesInterval = pTrigger->MinutesInterval;
......
......@@ -303,7 +303,8 @@ static void test_SetTrigger_GetTrigger(void)
ok(hres == E_INVALIDARG, "Expected E_INVALIDARG: 0x%08x\n", hres);
normal_trigger_state.MinutesDuration = 5;
normal_trigger_state.MinutesInterval = 0;
ok(hres == E_INVALIDARG, "Expected E_INVALIDARG: 0x%08x\n", hres);
hres = ITaskTrigger_SetTrigger(test_trigger, &normal_trigger_state);
ok(hres == S_OK, "Failed to set trigger: 0x%08x\n", hres);
normal_trigger_state.MinutesDuration = 0;
normal_trigger_state.MinutesInterval = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment