qmgr: Call the notification callback when jobs complete.

Signed-off-by: Erich E. Hoover <erich.e.hoover@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Erich E. Hoover 2019-11-07 11:26:26 -07:00 committed by Alexandre Julliard
parent 1edda7a302
commit 34ed1e37da
1 changed files with 2 additions and 0 deletions

View File

@ -1280,6 +1280,8 @@ void processJob(BackgroundCopyJobImpl *job)
if (done)
{
transitionJobState(job, BG_JOB_STATE_QUEUED, BG_JOB_STATE_TRANSFERRED);
if (job->callback && (job->notify_flags & BG_NOTIFY_JOB_TRANSFERRED))
IBackgroundCopyCallback2_JobTransferred(job->callback, (IBackgroundCopyJob*)&job->IBackgroundCopyJob3_iface);
return;
}