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:
parent
ce91365b10
commit
98f7468f9a
|
@ -371,6 +371,12 @@ static HRESULT WINAPI BackgroundCopyJob_Resume(
|
||||||
&& This->state != BG_JOB_STATE_TRANSFERRING)
|
&& This->state != BG_JOB_STATE_TRANSFERRING)
|
||||||
{
|
{
|
||||||
This->state = BG_JOB_STATE_QUEUED;
|
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);
|
SetEvent(globalMgr.jobEvent);
|
||||||
}
|
}
|
||||||
LeaveCriticalSection(&globalMgr.cs);
|
LeaveCriticalSection(&globalMgr.cs);
|
||||||
|
|
Loading…
Reference in New Issue