localspl: Fix error handling in ScheduleJob.

This commit is contained in:
Piotr Caban 2022-12-01 10:21:34 +01:00 committed by Alexandre Julliard
parent e687ebd363
commit a04bf6e8a8

View file

@ -3281,9 +3281,11 @@ static BOOL WINAPI fpScheduleJob(HANDLE hprinter, DWORD job_id)
NULL, OPEN_EXISTING, 0, NULL);
if (hf == INVALID_HANDLE_VALUE)
{
WARN("can't open spool file: %s\n", debugstr_w(job->filename));
DeleteFileW(job->filename);
free_job(job);
LeaveCriticalSection(&printer->info->jobs_cs);
return FALSE;
}
/* TODO: use print processor */