mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Replace DOSFS_GetFullName with wine_get_unix_file_name.
This commit is contained in:
parent
f0b6b9a1ba
commit
3fc3d06a66
1 changed files with 6 additions and 6 deletions
|
@ -530,7 +530,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
|
|||
}
|
||||
else
|
||||
{
|
||||
DOS_FULL_NAME fullName;
|
||||
char buffer[MAX_PATH];
|
||||
|
||||
TRACE("Just assume it's a file\n");
|
||||
|
||||
|
@ -538,12 +538,12 @@ static int CreateSpoolFile(LPCSTR pszOutput)
|
|||
* The file name can be dos based, we have to find its
|
||||
* Unix correspondant file name
|
||||
*/
|
||||
DOSFS_GetFullName(psCmdP, FALSE, &fullName);
|
||||
wine_get_unix_file_name(psCmdP, buffer, sizeof(buffer));
|
||||
|
||||
if ((fd = open(fullName.long_name, O_CREAT | O_TRUNC | O_WRONLY , 0600)) < 0)
|
||||
if ((fd = open(buffer, O_CREAT | O_TRUNC | O_WRONLY , 0600)) < 0)
|
||||
{
|
||||
ERR("Failed to create spool file %s (%s)\n",
|
||||
fullName.long_name, strerror(errno));
|
||||
ERR("Failed to create spool file '%s' ('%s'). (error %s)\n",
|
||||
buffer, psCmdP, strerror(errno));
|
||||
}
|
||||
}
|
||||
return fd;
|
||||
|
@ -584,7 +584,7 @@ HPJOB16 WINAPI OpenJob16(LPCSTR lpOutput, LPCSTR lpTitle, HDC16 hDC)
|
|||
{
|
||||
int fd;
|
||||
|
||||
/* Try an create a spool file */
|
||||
/* Try and create a spool file */
|
||||
fd = CreateSpoolFile(lpOutput);
|
||||
if (fd >= 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue