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
02d41b7b
Commit
02d41b7b
authored
Nov 16, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Nov 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Pre-1.6 versions of CUPS can leave behind a file when cupsGetPDD3…
winspool: Pre-1.6 versions of CUPS can leave behind a file when cupsGetPDD3 fails, so clear up afterwards.
parent
08c17ada
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
info.c
dlls/winspool.drv/info.c
+4
-1
No files found.
dlls/winspool.drv/info.c
View file @
02d41b7b
...
@@ -833,11 +833,14 @@ static BOOL get_cups_ppd( const char *printer_name, const WCHAR *ppd )
...
@@ -833,11 +833,14 @@ static BOOL get_cups_ppd( const char *printer_name, const WCHAR *ppd )
http_status
=
cupsGetPPD3_wrapper
(
0
,
printer_name
,
&
modtime
,
http_status
=
cupsGetPPD3_wrapper
(
0
,
printer_name
,
&
modtime
,
unix_name
,
strlen
(
unix_name
)
+
1
);
unix_name
,
strlen
(
unix_name
)
+
1
);
if
(
http_status
!=
HTTP_OK
)
unlink
(
unix_name
);
HeapFree
(
GetProcessHeap
(),
0
,
unix_name
);
HeapFree
(
GetProcessHeap
(),
0
,
unix_name
);
if
(
http_status
==
HTTP_OK
)
return
TRUE
;
if
(
http_status
==
HTTP_OK
)
return
TRUE
;
TRACE
(
"failed to get ppd for printer %s from cups, calling fallback
\n
"
,
debugstr_a
(
printer_name
)
);
TRACE
(
"failed to get ppd for printer %s from cups (status %d), calling fallback
\n
"
,
debugstr_a
(
printer_name
),
http_status
);
return
get_fallback_ppd
(
printer_name
,
ppd
);
return
get_fallback_ppd
(
printer_name
,
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