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
6316429c
Commit
6316429c
authored
Mar 08, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Mar 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Remove paper sizes that lack either a PageSize or a PaperDimension entry in the PPD.
parent
277f4744
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
ppd.c
dlls/wineps.drv/ppd.c
+17
-4
No files found.
dlls/wineps.drv/ppd.c
View file @
6316429c
...
...
@@ -551,6 +551,7 @@ PPD *PSDRV_ParsePPD(char *fname)
PPD
*
ppd
;
PPDTuple
tuple
;
char
*
default_pagesize
=
NULL
,
*
default_duplex
=
NULL
;
PAGESIZE
*
page
,
*
page_cursor2
;
TRACE
(
"file '%s'
\n
"
,
fname
);
...
...
@@ -647,7 +648,6 @@ PPD *PSDRV_ParsePPD(char *fname)
}
else
if
(
!
strcmp
(
"*PageSize"
,
tuple
.
key
))
{
PAGESIZE
*
page
;
page
=
PSDRV_PPDGetPageSizeInfo
(
ppd
,
tuple
.
option
);
if
(
!
page
->
Name
)
{
...
...
@@ -694,7 +694,6 @@ PPD *PSDRV_ParsePPD(char *fname)
}
else
if
(
!
strcmp
(
"*ImageableArea"
,
tuple
.
key
))
{
PAGESIZE
*
page
;
page
=
PSDRV_PPDGetPageSizeInfo
(
ppd
,
tuple
.
option
);
if
(
!
page
->
Name
)
{
...
...
@@ -719,7 +718,6 @@ PPD *PSDRV_ParsePPD(char *fname)
else
if
(
!
strcmp
(
"*PaperDimension"
,
tuple
.
key
))
{
PAGESIZE
*
page
;
page
=
PSDRV_PPDGetPageSizeInfo
(
ppd
,
tuple
.
option
);
if
(
!
page
->
Name
)
{
...
...
@@ -859,10 +857,25 @@ PPD *PSDRV_ParsePPD(char *fname)
}
/* Remove any partial page size entries, that is any without a PageSize or a PaperDimension (we can
cope with a missing ImageableArea). */
LIST_FOR_EACH_ENTRY_SAFE
(
page
,
page_cursor2
,
&
ppd
->
PageSizes
,
PAGESIZE
,
entry
)
{
if
(
!
page
->
InvocationString
||
!
page
->
PaperDimension
)
{
WARN
(
"Removing page %s since it has a missing %s entry
\n
"
,
debugstr_a
(
page
->
FullName
),
page
->
InvocationString
?
"PaperDimension"
:
"InvocationString"
);
HeapFree
(
PSDRV_Heap
,
0
,
page
->
Name
);
HeapFree
(
PSDRV_Heap
,
0
,
page
->
FullName
);
HeapFree
(
PSDRV_Heap
,
0
,
page
->
InvocationString
);
HeapFree
(
PSDRV_Heap
,
0
,
page
->
ImageableArea
);
HeapFree
(
PSDRV_Heap
,
0
,
page
->
PaperDimension
);
list_remove
(
&
page
->
entry
);
}
}
ppd
->
DefaultPageSize
=
NULL
;
if
(
default_pagesize
)
{
PAGESIZE
*
page
;
LIST_FOR_EACH_ENTRY
(
page
,
&
ppd
->
PageSizes
,
PAGESIZE
,
entry
)
{
if
(
!
strcmp
(
page
->
Name
,
default_pagesize
))
{
ppd
->
DefaultPageSize
=
page
;
...
...
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