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
6d2afbcf
Commit
6d2afbcf
authored
Apr 12, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Load generic.ppd from the data dir if nothing else is specified.
parent
35bca77f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
init.c
dlls/wineps/init.c
+15
-4
No files found.
dlls/wineps/init.c
View file @
6d2afbcf
...
...
@@ -618,10 +618,21 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
RegCloseKey
(
hkey
);
}
if
(
!
ppdFileName
)
{
res
=
ERROR_FILE_NOT_FOUND
;
ERR
(
"Error %li getting PPD file name for printer '%s'
\n
"
,
res
,
name
);
goto
closeprinter
;
if
(
!
ppdFileName
)
{
const
char
*
data_dir
,
*
filename
;
if
((
data_dir
=
wine_get_data_dir
()))
filename
=
"/generic.ppd"
;
else
if
((
data_dir
=
wine_get_build_dir
()))
filename
=
"/dlls/wineps/generic.ppd"
;
else
{
res
=
ERROR_FILE_NOT_FOUND
;
ERR
(
"Error %li getting PPD file name for printer '%s'
\n
"
,
res
,
name
);
goto
closeprinter
;
}
ppdFileName
=
HeapAlloc
(
PSDRV_Heap
,
0
,
strlen
(
data_dir
)
+
strlen
(
filename
)
+
1
);
strcpy
(
ppdFileName
,
data_dir
);
strcat
(
ppdFileName
,
filename
);
}
else
{
res
=
ERROR_SUCCESS
;
if
(
ppdType
==
REG_EXPAND_SZ
)
{
...
...
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