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
ef08f69e
Commit
ef08f69e
authored
Apr 16, 2014
by
Huw Davies
Committed by
Alexandre Julliard
Apr 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Always initialize the Windows page type.
parent
293c53e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
ppd.c
dlls/wineps.drv/ppd.c
+20
-16
No files found.
dlls/wineps.drv/ppd.c
View file @
ef08f69e
...
...
@@ -816,26 +816,13 @@ PPD *PSDRV_ParsePPD( const WCHAR *fname, HANDLE printer )
tuple
.
value
=
NULL
;
}
else
if
(
!
strcmp
(
"*PageSize"
,
tuple
.
key
))
{
else
if
(
!
strcmp
(
"*PageSize"
,
tuple
.
key
))
{
page
=
get_pagesize
(
ppd
,
tuple
.
option
,
TRUE
);
if
(
!
page
->
Name
)
{
int
i
;
page
->
Name
=
tuple
.
option
;
tuple
.
option
=
NULL
;
for
(
i
=
0
;
PageTrans
[
i
].
PSName
;
i
++
)
{
if
(
!
strcmp
(
PageTrans
[
i
].
PSName
,
page
->
Name
))
{
/* case ? */
page
->
WinPage
=
PageTrans
[
i
].
WinPage
;
break
;
}
}
if
(
!
page
->
WinPage
)
{
TRACE
(
"Can't find Windows page type for '%s' - using %u
\n
"
,
page
->
Name
,
UserPageType
);
page
->
WinPage
=
UserPageType
++
;
}
}
if
(
!
page
->
FullName
)
{
if
(
tuple
.
opttrans
)
{
...
...
@@ -851,7 +838,24 @@ PPD *PSDRV_ParsePPD( const WCHAR *fname, HANDLE printer )
page
->
InvocationString
=
tuple
.
value
;
tuple
.
value
=
NULL
;
}
}
if
(
!
page
->
WinPage
)
{
int
i
;
for
(
i
=
0
;
PageTrans
[
i
].
PSName
;
i
++
)
{
if
(
!
strcmp
(
PageTrans
[
i
].
PSName
,
page
->
Name
))
{
page
->
WinPage
=
PageTrans
[
i
].
WinPage
;
break
;
}
}
if
(
!
page
->
WinPage
)
{
TRACE
(
"Can't find Windows page type for %s - using %u
\n
"
,
debugstr_a
(
page
->
Name
),
UserPageType
);
page
->
WinPage
=
UserPageType
++
;
}
}
}
else
if
(
!
strcmp
(
"*DefaultPageSize"
,
tuple
.
key
))
{
...
...
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