Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b7714744
Commit
b7714744
authored
Dec 02, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Store default datatype in printer data.
parent
9b9baf35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
provider.c
dlls/localspl/provider.c
+5
-1
No files found.
dlls/localspl/provider.c
View file @
b7714744
...
...
@@ -275,7 +275,8 @@ typedef struct {
typedef
struct
{
handle_header_t
header
;
printer_info_t
*
info
;
LPWSTR
name
;
WCHAR
*
name
;
WCHAR
*
datatype
;
DEVMODEW
*
devmode
;
job_info_t
*
doc
;
}
printer_t
;
...
...
@@ -1841,6 +1842,8 @@ static HANDLE printer_alloc_handle(const WCHAR *name, const WCHAR *basename,
return
NULL
;
}
if
(
def
&&
def
->
pDatatype
)
printer
->
datatype
=
wcsdup
(
def
->
pDatatype
);
if
(
def
&&
def
->
pDevMode
)
printer
->
devmode
=
dup_devmode
(
def
->
pDevMode
);
...
...
@@ -3772,6 +3775,7 @@ static BOOL WINAPI fpClosePrinter(HANDLE hprinter)
release_printer_info
(
printer
->
info
);
free
(
printer
->
name
);
free
(
printer
->
datatype
);
free
(
printer
->
devmode
);
free
(
printer
);
}
...
...
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