taskschd: Implement IRegistrationTrigger_putEnabled.
This commit is contained in:
parent
4b9e76914a
commit
ea552a6f39
2 changed files with 8 additions and 3 deletions
|
@ -326,6 +326,7 @@ static HRESULT DailyTrigger_create(ITrigger **trigger)
|
|||
|
||||
typedef struct {
|
||||
IRegistrationTrigger IRegistrationTrigger_iface;
|
||||
BOOL enabled;
|
||||
LONG ref;
|
||||
} RegistrationTrigger;
|
||||
|
||||
|
@ -502,8 +503,11 @@ static HRESULT WINAPI RegistrationTrigger_get_Enabled(IRegistrationTrigger *ifac
|
|||
static HRESULT WINAPI RegistrationTrigger_put_Enabled(IRegistrationTrigger *iface, VARIANT_BOOL enabled)
|
||||
{
|
||||
RegistrationTrigger *This = impl_from_IRegistrationTrigger(iface);
|
||||
FIXME("(%p)->(%x)\n", This, enabled);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%x)\n", This, enabled);
|
||||
|
||||
This->enabled = !!enabled;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI RegistrationTrigger_get_Delay(IRegistrationTrigger *iface, BSTR *pDelay)
|
||||
|
@ -555,6 +559,7 @@ static HRESULT RegistrationTrigger_create(ITrigger **trigger)
|
|||
|
||||
registration_trigger->IRegistrationTrigger_iface.lpVtbl = &RegistrationTrigger_vtbl;
|
||||
registration_trigger->ref = 1;
|
||||
registration_trigger->enabled = FALSE;
|
||||
|
||||
*trigger = (ITrigger*)®istration_trigger->IRegistrationTrigger_iface;
|
||||
return S_OK;
|
||||
|
|
|
@ -1406,7 +1406,7 @@ static void test_registration_trigger(ITrigger *trigger)
|
|||
todo_wine ok(enabled == VARIANT_TRUE, "got %d\n", enabled);
|
||||
|
||||
hr = IRegistrationTrigger_put_Enabled(reg_trigger, VARIANT_FALSE);
|
||||
todo_wine ok(hr == S_OK, "put_Enabled failed: %08lx\n", hr);
|
||||
ok(hr == S_OK, "put_Enabled failed: %08lx\n", hr);
|
||||
|
||||
enabled = VARIANT_TRUE;
|
||||
hr = IRegistrationTrigger_get_Enabled(reg_trigger, &enabled);
|
||||
|
|
Loading…
Add table
Reference in a new issue