Module: wine Branch: master Commit: 98f7468f9a7c4ff5afe9dec2558e8bc43f0bf8c3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=98f7468f9a7c4ff5afe9dec255...
Author: Hans Leidekker hans@codeweavers.com Date: Tue May 17 10:53:06 2016 +0200
qmgr: Clear job error on resume.
Signed-off-by: Hans Leidekker hans@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/qmgr/job.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/qmgr/job.c b/dlls/qmgr/job.c index f6891e3..33e3bd2 100644 --- a/dlls/qmgr/job.c +++ b/dlls/qmgr/job.c @@ -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);