Commit a04bf6e8 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

localspl: Fix error handling in ScheduleJob.

parent e687ebd3
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment