Commit 999922f7 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

mstask: ITaskTrigger::GetTrigger() should fail on NULL input.

parent fa4c7074
......@@ -211,6 +211,8 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_GetTrigger(
TRACE("(%p, %p)\n", iface, pTrigger);
if (!pTrigger) return E_INVALIDARG;
/* Native implementation doesn't verify equivalent cbTriggerSize fields */
/* Copy relevant fields of the structure */
......
......@@ -139,6 +139,9 @@ static void test_SetTrigger_GetTrigger(void)
hres = ITaskTrigger_SetTrigger(test_trigger, NULL);
ok(hres == E_INVALIDARG, "got %#x\n", hres);
hres = ITaskTrigger_GetTrigger(test_trigger, NULL);
ok(hres == E_INVALIDARG, "got %#x\n", hres);
/* Setup a trigger with base values for this test run */
GetLocalTime(&time);
empty_trigger_state.wStartHour = time.wHour;
......
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