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
0c63012b
Commit
0c63012b
authored
May 09, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
May 09, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented /etc/printcap based printing support.
Changed 'CUPS:printername' to 'LPR:printername'. Some fixes in AddPrinterW().
parent
b7c2f2ff
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
12 deletions
+20
-12
printdrv.c
dlls/gdi/printdrv.c
+4
-4
init.c
dlls/wineps/init.c
+14
-4
info.c
dlls/winspool/info.c
+0
-0
wspool.c
dlls/winspool/wspool.c
+2
-4
No files found.
dlls/gdi/printdrv.c
View file @
0c63012b
...
...
@@ -384,7 +384,7 @@ INT16 WINAPI InsertPQ16(HPQ16 hPQ, INT16 tag, INT16 key)
{
struct
hpq
*
queueItem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
hpq
));
if
(
queueItem
==
NULL
)
{
ERR
(
"Memory exausted!"
);
ERR
(
"Memory exausted!
\n
"
);
return
FALSE
;
}
queueItem
->
next
=
hpqueue
;
...
...
@@ -456,8 +456,8 @@ static int CreateSpoolFile(LPCSTR pszOutput)
if
(
pszOutput
==
NULL
||
*
pszOutput
==
'\0'
)
return
-
1
;
if
(
!
strncmp
(
"
CUPS:"
,
pszOutput
,
5
))
sprintf
(
psCmd
,
"|lpr -P%s"
,
pszOutput
+
5
);
if
(
!
strncmp
(
"
LPR:"
,
pszOutput
,
4
))
sprintf
(
psCmd
,
"|lpr -P%s"
,
pszOutput
+
4
);
else
PROFILE_GetWineIniString
(
"spooler"
,
pszOutput
,
""
,
psCmd
,
sizeof
(
psCmd
));
TRACE
(
"Got printerSpoolCommand '%s' for output device '%s'
\n
"
,
...
...
@@ -555,7 +555,7 @@ HPJOB16 WINAPI OpenJob16(LPCSTR lpOutput, LPCSTR lpTitle, HDC16 hDC)
{
pPrintJob
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
PRINTJOB
));
if
(
pPrintJob
==
NULL
)
{
WARN
(
"Memory exausted!"
);
WARN
(
"Memory exausted!
\n
"
);
return
hHandle
;
}
...
...
dlls/wineps/init.c
View file @
0c63012b
...
...
@@ -522,9 +522,9 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
strncpy
(
ppdFileName
,
ppd
,
sizeof
(
ppdFileName
));
res
=
ERROR_SUCCESS
;
/* we should unlink() that file later */
}
else
{
ERR
(
"Did not find ppd for %s
\n
"
,
name
);
}
else
{
res
=
ERROR_FILE_NOT_FOUND
;
WARN
(
"Did not find ppd for %s
\n
"
,
name
);
}
}
#endif
...
...
@@ -533,7 +533,17 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
res
=
GetPrinterDataA
(
hPrinter
,
"PPD File"
,
NULL
,
ppdFileName
,
sizeof
(
ppdFileName
),
&
needed
);
}
/* Look for a ppd file for this printer in the config file.
* First look for the names of the printer, then for 'generic'
*/
if
((
res
!=
ERROR_SUCCESS
)
&&
!
PROFILE_GetWineIniString
(
"ppd"
,
name
,
""
,
ppdFileName
,
sizeof
(
ppdFileName
))
&&
!
PROFILE_GetWineIniString
(
"ppd"
,
"generic"
,
""
,
ppdFileName
,
sizeof
(
ppdFileName
))
)
res
=
ERROR_FILE_NOT_FOUND
;
else
res
=
ERROR_SUCCESS
;
if
(
res
!=
ERROR_SUCCESS
)
{
ERR
(
"Error %li getting PPD file name for printer '%s'
\n
"
,
res
,
name
);
goto
closeprinter
;
...
...
dlls/winspool/info.c
View file @
0c63012b
This diff is collapsed.
Click to expand it.
dlls/winspool/wspool.c
View file @
0c63012b
...
...
@@ -26,10 +26,8 @@ BOOL WINAPI WINSPOOL_EntryPoint(HINSTANCE hInstance,
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
{
#ifdef HAVE_CUPS
extern
void
CUPS_LoadPrinters
();
CUPS_LoadPrinters
();
#endif
extern
void
WINSPOOL_LoadSystemPrinters
();
WINSPOOL_LoadSystemPrinters
();
break
;
}
case
DLL_PROCESS_DETACH
:
...
...
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