qmgr: Clear job error on resume.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2016-05-17 10:53:06 +02:00 committed by Alexandre Julliard
parent ce91365b10
commit 98f7468f9a
1 changed files with 6 additions and 0 deletions

View File

@ -371,6 +371,12 @@ static HRESULT WINAPI BackgroundCopyJob_Resume(
&& This->state != BG_JOB_STATE_TRANSFERRING)
{
This->state = BG_JOB_STATE_QUEUED;
This->error.context = This->error.code = 0;
if (This->error.file)
{
IBackgroundCopyFile2_Release(This->error.file);
This->error.file = NULL;
}
SetEvent(globalMgr.jobEvent);
}
LeaveCriticalSection(&globalMgr.cs);