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
8506125c
Commit
8506125c
authored
Aug 22, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Aug 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Add always the Win9x and the NT printerdriver.
parent
daceb456
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
info.c
dlls/winspool.drv/info.c
+21
-17
No files found.
dlls/winspool.drv/info.c
View file @
8506125c
...
...
@@ -470,31 +470,35 @@ static BOOL add_printer_driver(const char *name)
{
DRIVER_INFO_3A
di3a
;
static
char
driver_path
[]
=
"wineps16"
,
data_file
[]
=
"<datafile?>"
,
config_file
[]
=
"wineps16"
,
help_file
[]
=
"<helpfile?>"
,
dep_file
[]
=
"<dependent files?>
\0
"
,
monitor_name
[]
=
"<monitor name?>"
,
static
char
driver_9x
[]
=
"wineps16.drv"
,
driver_nt
[]
=
"wineps.drv"
,
env_9x
[]
=
"Windows 4.0"
,
env_nt
[]
=
"Windows NT x86"
,
data_file
[]
=
"generic.ppd"
,
default_data_type
[]
=
"RAW"
;
di3a
.
cVersion
=
(
GetVersion
()
&
0x80000000
)
?
0
:
3
;
/* FIXME: add 1, 2 */
ZeroMemory
(
&
di3a
,
sizeof
(
DRIVER_INFO_3A
));
di3a
.
cVersion
=
3
;
di3a
.
pName
=
(
char
*
)
name
;
di3a
.
pEnvironment
=
NULL
;
/* NULL means auto */
di3a
.
pDriverPath
=
driver_
path
;
di3a
.
pEnvironment
=
env_nt
;
di3a
.
pDriverPath
=
driver_
nt
;
di3a
.
pDataFile
=
data_file
;
di3a
.
pConfigFile
=
config_file
;
di3a
.
pHelpFile
=
help_file
;
di3a
.
pDependentFiles
=
dep_file
;
di3a
.
pMonitorName
=
monitor_name
;
di3a
.
pConfigFile
=
driver_nt
;
di3a
.
pDefaultDataType
=
default_data_type
;
if
(
!
AddPrinterDriverA
(
NULL
,
3
,
(
LPBYTE
)
&
di3a
))
if
(
AddPrinterDriverA
(
NULL
,
3
,
(
LPBYTE
)
&
di3a
))
{
ERR
(
"Failed adding driver (%d)
\n
"
,
GetLastError
());
return
FALSE
;
di3a
.
cVersion
=
0
;
di3a
.
pEnvironment
=
env_9x
;
di3a
.
pDriverPath
=
driver_9x
;
di3a
.
pConfigFile
=
driver_9x
;
if
(
AddPrinterDriverA
(
NULL
,
3
,
(
LPBYTE
)
&
di3a
))
{
return
TRUE
;
}
}
return
TRUE
;
ERR
(
"Failed adding driver %s: %u
\n
"
,
debugstr_a
(
di3a
.
pDriverPath
),
GetLastError
());
return
FALSE
;
}
#ifdef SONAME_LIBCUPS
...
...
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