taskschd: Do not return ERROR_* constant in HRESULT function.