mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 21:53:38 +00:00
localspl: Fix error handling in ScheduleJob.
This commit is contained in:
parent
e687ebd363
commit
a04bf6e8a8
|
@ -3281,9 +3281,11 @@ static BOOL WINAPI fpScheduleJob(HANDLE hprinter, DWORD job_id)
|
||||||
NULL, OPEN_EXISTING, 0, NULL);
|
NULL, OPEN_EXISTING, 0, NULL);
|
||||||
if (hf == INVALID_HANDLE_VALUE)
|
if (hf == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
|
WARN("can't open spool file: %s\n", debugstr_w(job->filename));
|
||||||
DeleteFileW(job->filename);
|
DeleteFileW(job->filename);
|
||||||
free_job(job);
|
free_job(job);
|
||||||
LeaveCriticalSection(&printer->info->jobs_cs);
|
LeaveCriticalSection(&printer->info->jobs_cs);
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: use print processor */
|
/* TODO: use print processor */
|
||||||
|
|
Loading…
Reference in a new issue