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
d6d0239f
Commit
d6d0239f
authored
17 years ago
by
Detlef Riekenberg
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Error check in add_printer_driver() was to strict.
Reported by Dan Sawyer.
parent
efdc1168
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
info.c
dlls/winspool.drv/info.c
+6
-3
No files found.
dlls/winspool.drv/info.c
View file @
d6d0239f
...
@@ -486,18 +486,21 @@ static BOOL add_printer_driver(const char *name)
...
@@ -486,18 +486,21 @@ static BOOL add_printer_driver(const char *name)
di3a
.
pConfigFile
=
driver_nt
;
di3a
.
pConfigFile
=
driver_nt
;
di3a
.
pDefaultDataType
=
default_data_type
;
di3a
.
pDefaultDataType
=
default_data_type
;
if
(
AddPrinterDriverA
(
NULL
,
3
,
(
LPBYTE
)
&
di3a
))
if
(
AddPrinterDriverA
(
NULL
,
3
,
(
LPBYTE
)
&
di3a
)
||
(
GetLastError
()
==
ERROR_PRINTER_DRIVER_ALREADY_INSTALLED
))
{
{
di3a
.
cVersion
=
0
;
di3a
.
cVersion
=
0
;
di3a
.
pEnvironment
=
env_9x
;
di3a
.
pEnvironment
=
env_9x
;
di3a
.
pDriverPath
=
driver_9x
;
di3a
.
pDriverPath
=
driver_9x
;
di3a
.
pConfigFile
=
driver_9x
;
di3a
.
pConfigFile
=
driver_9x
;
if
(
AddPrinterDriverA
(
NULL
,
3
,
(
LPBYTE
)
&
di3a
))
if
(
AddPrinterDriverA
(
NULL
,
3
,
(
LPBYTE
)
&
di3a
)
||
(
GetLastError
()
==
ERROR_PRINTER_DRIVER_ALREADY_INSTALLED
))
{
{
return
TRUE
;
return
TRUE
;
}
}
}
}
ERR
(
"Failed adding driver %s: %u
\n
"
,
debugstr_a
(
di3a
.
pDriverPath
),
GetLastError
());
ERR
(
"Failed adding driver %s (%s): %u
\n
"
,
debugstr_a
(
di3a
.
pDriverPath
),
debugstr_a
(
di3a
.
pEnvironment
),
GetLastError
());
return
FALSE
;
return
FALSE
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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