mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 20:23:39 +00:00
localspl: Store datatype in print job data.
This commit is contained in:
parent
230aab4ca8
commit
9b9baf3534
|
@ -223,6 +223,7 @@ typedef struct {
|
||||||
DWORD id;
|
DWORD id;
|
||||||
WCHAR *filename;
|
WCHAR *filename;
|
||||||
WCHAR *port;
|
WCHAR *port;
|
||||||
|
WCHAR *datatype;
|
||||||
WCHAR *document_title;
|
WCHAR *document_title;
|
||||||
DEVMODEW *devmode;
|
DEVMODEW *devmode;
|
||||||
HANDLE hf;
|
HANDLE hf;
|
||||||
|
@ -608,6 +609,7 @@ static void free_job(job_info_t *job)
|
||||||
list_remove(&job->entry);
|
list_remove(&job->entry);
|
||||||
free(job->filename);
|
free(job->filename);
|
||||||
free(job->port);
|
free(job->port);
|
||||||
|
free(job->datatype);
|
||||||
free(job->document_title);
|
free(job->document_title);
|
||||||
free(job->devmode);
|
free(job->devmode);
|
||||||
CloseHandle(job->hf);
|
CloseHandle(job->hf);
|
||||||
|
@ -3215,6 +3217,7 @@ static job_info_t* add_job(printer_t *printer, DOC_INFO_1W *info, BOOL create)
|
||||||
job->hf = NULL;
|
job->hf = NULL;
|
||||||
}
|
}
|
||||||
job->document_title = wcsdup(info->pDocName);
|
job->document_title = wcsdup(info->pDocName);
|
||||||
|
job->datatype = wcsdup(info->pDatatype);
|
||||||
job->devmode = dup_devmode(printer->devmode);
|
job->devmode = dup_devmode(printer->devmode);
|
||||||
|
|
||||||
EnterCriticalSection(&printer->info->jobs_cs);
|
EnterCriticalSection(&printer->info->jobs_cs);
|
||||||
|
|
Loading…
Reference in a new issue