mstask: Fix saving the triggers.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2018-04-24 16:13:38 +08:00 committed by Alexandre Julliard
parent f997b16230
commit bdb78491cb
1 changed files with 3 additions and 5 deletions

View File

@ -980,12 +980,10 @@ static HRESULT WINAPI MSTASK_IPersistFile_Save(IPersistFile *iface, LPCOLESTR ta
goto failed; goto failed;
} }
/* Trigegrs */ /* Triggers */
if (!write_triggers(hfile, task)) hr = write_triggers(task, hfile);
{ if (hr != S_OK)
hr = HRESULT_FROM_WIN32(GetLastError());
goto failed; goto failed;
}
/* Signature */ /* Signature */
if (!write_signature(hfile)) if (!write_signature(hfile))