Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
1b2db7f1
Commit
1b2db7f1
authored
May 22, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
May 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Implement AbortPrinter while spooling.
parent
8a9c955b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletion
+38
-1
provider.c
dlls/localspl/provider.c
+38
-1
No files found.
dlls/localspl/provider.c
View file @
1b2db7f1
...
...
@@ -3823,6 +3823,43 @@ static BOOL WINAPI fpScheduleJob(HANDLE hprinter, DWORD job_id)
return
ret
;
}
static
BOOL
WINAPI
fpAbortPrinter
(
HANDLE
hprinter
)
{
printer_t
*
printer
=
(
printer_t
*
)
hprinter
;
job_info_t
*
job
;
TRACE
(
"%p
\n
"
,
hprinter
);
if
(
!
printer
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
0
;
}
if
(
printer
->
header
.
type
!=
HANDLE_PRINTER
)
{
FIXME
(
"%x handle not supported
\n
"
,
printer
->
header
.
type
);
return
FALSE
;
}
if
(
!
printer
->
doc
)
{
SetLastError
(
ERROR_SPL_NO_STARTDOC
);
return
FALSE
;
}
CloseHandle
(
printer
->
doc
->
hf
);
printer
->
doc
->
hf
=
NULL
;
EnterCriticalSection
(
&
printer
->
info
->
jobs_cs
);
job
=
get_job
(
printer
->
info
,
printer
->
doc
->
id
);
if
(
job
)
free_job
(
job
);
LeaveCriticalSection
(
&
printer
->
info
->
jobs_cs
);
printer
->
doc
=
NULL
;
return
TRUE
;
}
static
BOOL
WINAPI
fpReadPrinter
(
HANDLE
hprinter
,
void
*
buf
,
DWORD
size
,
DWORD
*
bytes_read
)
{
job_t
*
job
=
(
job_t
*
)
hprinter
;
...
...
@@ -4003,7 +4040,7 @@ static const PRINTPROVIDOR backend = {
NULL
,
/* fpStartPagePrinter */
fpWritePrinter
,
NULL
,
/* fpEndPagePrinter */
NULL
,
/* fpAbortPrinter */
fpAbortPrinter
,
fpReadPrinter
,
fpEndDocPrinter
,
fpAddJob
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment