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
b6b8d5f4
Commit
b6b8d5f4
authored
Oct 05, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Add ResetPrinter implementation.
parent
372c4386
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
provider.c
dlls/localspl/provider.c
+31
-1
No files found.
dlls/localspl/provider.c
View file @
b6b8d5f4
...
...
@@ -2472,6 +2472,36 @@ static BOOL WINAPI fpDeleteMonitor(LPWSTR pName, LPWSTR pEnvironment, LPWSTR pMo
return
FALSE
;
}
static
BOOL
WINAPI
fpResetPrinter
(
HANDLE
hprinter
,
PRINTER_DEFAULTSW
*
def
)
{
printer_t
*
printer
=
(
printer_t
*
)
hprinter
;
if
(
!
printer
||
printer
->
header
.
type
!=
HANDLE_PRINTER
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
!
def
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
free
(
printer
->
datatype
);
if
(
def
->
pDatatype
)
printer
->
datatype
=
wcsdup
(
def
->
pDatatype
);
else
printer
->
datatype
=
NULL
;
free
(
printer
->
devmode
);
if
(
def
->
pDevMode
)
printer
->
devmode
=
dup_devmode
(
def
->
pDevMode
);
else
printer
->
devmode
=
NULL
;
return
TRUE
;
}
/*****************************************************************************
* fpDeletePort [exported through PRINTPROVIDOR]
*
...
...
@@ -4111,7 +4141,7 @@ static const PRINTPROVIDOR backend = {
NULL
,
/* fpPrinterMessageBox */
fpAddMonitor
,
fpDeleteMonitor
,
NULL
,
/* fpResetPrinter */
fpResetPrinter
,
NULL
,
/* fpGetPrinterDriverEx */
NULL
,
/* fpFindFirstPrinterChangeNotification */
NULL
,
/* fpFindClosePrinterChangeNotification */
...
...
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