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
67ca3e71
Commit
67ca3e71
authored
Aug 24, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winprint: Implement TEXT print processor.
parent
be5ca1be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
printproc.c
dlls/winprint/printproc.c
+8
-6
No files found.
dlls/winprint/printproc.c
View file @
67ca3e71
...
...
@@ -25,7 +25,6 @@
* NT EMF 1.006
* NT EMF 1.007
* NT EMF 1.008
* TEXT
* XPS2GDI
*
* Implement print processor features like e.g. printing multiple copies. */
...
...
@@ -66,6 +65,7 @@ BOOL WINAPI EnumPrintProcessorDatatypesW(WCHAR *server, WCHAR *name, DWORD level
BYTE
*
datatypes
,
DWORD
size
,
DWORD
*
needed
,
DWORD
*
no
)
{
static
const
WCHAR
raw
[]
=
L"RAW"
;
static
const
WCHAR
text
[]
=
L"TEXT"
;
DATATYPES_INFO_1W
*
info
=
(
DATATYPES_INFO_1W
*
)
datatypes
;
...
...
@@ -79,7 +79,7 @@ BOOL WINAPI EnumPrintProcessorDatatypesW(WCHAR *server, WCHAR *name, DWORD level
}
*
no
=
0
;
*
needed
=
sizeof
(
*
info
)
+
sizeof
(
raw
);
*
needed
=
2
*
sizeof
(
*
info
)
+
sizeof
(
raw
)
+
sizeof
(
text
);
if
(
level
!=
1
||
(
size
&&
!
datatypes
))
{
...
...
@@ -93,9 +93,11 @@ BOOL WINAPI EnumPrintProcessorDatatypesW(WCHAR *server, WCHAR *name, DWORD level
return
FALSE
;
}
*
no
=
1
;
info
->
pName
=
(
WCHAR
*
)(
info
+
1
);
memcpy
(
info
+
1
,
raw
,
sizeof
(
raw
));
*
no
=
2
;
info
[
0
].
pName
=
(
WCHAR
*
)(
info
+
2
);
info
[
1
].
pName
=
info
[
0
].
pName
+
sizeof
(
raw
)
/
sizeof
(
WCHAR
);
memcpy
(
info
[
0
].
pName
,
raw
,
sizeof
(
raw
));
memcpy
(
info
[
1
].
pName
,
text
,
sizeof
(
text
));
return
TRUE
;
}
...
...
@@ -111,7 +113,7 @@ HANDLE WINAPI OpenPrintProcessor(WCHAR *port, PRINTPROCESSOROPENDATA *open_data)
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
if
(
wcscmp
(
open_data
->
pDatatype
,
L"RAW"
))
if
(
wcscmp
(
open_data
->
pDatatype
,
L"RAW"
)
&&
wcscmp
(
open_data
->
pDatatype
,
L"TEXT"
)
)
{
SetLastError
(
ERROR_INVALID_DATATYPE
);
return
NULL
;
...
...
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