[1/2] qmgr: Clear job error on resume.
Hans Leidekker
hans at codeweavers.com
Tue May 17 03:53:06 CDT 2016
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
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);
--
2.8.1
More information about the wine-patches
mailing list