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
f1aea67d
Commit
f1aea67d
authored
Dec 17, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool.drv: Don't crash if the ppd directory cannot be created.
parent
50cdc6d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
info.c
dlls/winspool.drv/info.c
+11
-3
No files found.
dlls/winspool.drv/info.c
View file @
f1aea67d
...
...
@@ -946,7 +946,11 @@ static BOOL CUPS_LoadPrinters(void)
}
else
{
BOOL
added_driver
=
FALSE
;
if
(
!
ppd_dir
)
ppd_dir
=
get_ppd_dir
();
if
(
!
ppd_dir
&&
!
(
ppd_dir
=
get_ppd_dir
()))
{
HeapFree
(
GetProcessHeap
(),
0
,
port
);
break
;
}
ppd
=
get_ppd_filename
(
ppd_dir
,
nameW
);
if
(
get_cups_ppd
(
dests
[
i
].
name
,
ppd
))
{
...
...
@@ -1098,7 +1102,11 @@ static BOOL update_driver( HANDLE printer )
queue_name
=
get_queue_name
(
printer
,
&
is_cups
);
if
(
!
queue_name
)
return
FALSE
;
ppd_dir
=
get_ppd_dir
();
if
(
!
(
ppd_dir
=
get_ppd_dir
()))
{
HeapFree
(
GetProcessHeap
(),
0
,
queue_name
);
return
FALSE
;
}
ppd
=
get_ppd_filename
(
ppd_dir
,
name
);
#ifdef SONAME_LIBCUPS
...
...
@@ -1224,7 +1232,7 @@ static BOOL PRINTCAP_ParseEntry( const char *pent, BOOL isfirst )
sep_file
[]
=
"<sep file?>"
;
BOOL
added_driver
=
FALSE
;
if
(
!
ppd_dir
)
ppd_dir
=
get_ppd_dir
()
;
if
(
!
ppd_dir
&&
!
(
ppd_dir
=
get_ppd_dir
()))
goto
end
;
ppd
=
get_ppd_filename
(
ppd_dir
,
devnameW
);
if
(
get_fallback_ppd
(
devname
,
ppd
))
{
...
...
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