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
f93dcc25
Commit
f93dcc25
authored
Jun 15, 2000
by
Frederic Boulanger
Committed by
Alexandre Julliard
Jun 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CreateSpoolFile is called with a dos name, we have to make sure that
when we create the spoolfile we use the unix name associated to the dos file name.
parent
6a31f961
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
printdrv.c
misc/printdrv.c
+11
-3
No files found.
misc/printdrv.c
View file @
f93dcc25
...
...
@@ -25,6 +25,7 @@
#include "callback.h"
#include "options.h"
#include "heap.h"
#include "file.h"
DEFAULT_DEBUG_CHANNEL
(
print
)
...
...
@@ -421,7 +422,6 @@ static PPRINTJOB FindPrintJobFromHandle(HANDLE16 hHandle)
return
gPrintJobsTable
[
0
];
}
/* TTD Need to do some DOS->UNIX file conversion here */
static
int
CreateSpoolFile
(
LPCSTR
pszOutput
)
{
int
fd
=-
1
;
...
...
@@ -470,12 +470,20 @@ static int CreateSpoolFile(LPCSTR pszOutput)
}
else
{
DOS_FULL_NAME
fullName
;
TRACE
(
"Just assume its a file
\n
"
);
if
((
fd
=
open
(
psCmdP
,
O_CREAT
|
O_TRUNC
|
O_WRONLY
,
0600
))
<
0
)
/**
* The file name can be dos based, we have to find its
* Unix correspondant file name
*/
DOSFS_GetFullName
(
psCmdP
,
FALSE
,
&
fullName
);
if
((
fd
=
open
(
fullName
.
long_name
,
O_CREAT
|
O_TRUNC
|
O_WRONLY
,
0600
))
<
0
)
{
ERR
(
"Failed to create spool file %s, errno = %d
\n
"
,
psCmdP
,
errno
);
fullName
.
long_name
,
errno
);
}
}
return
fd
;
...
...
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