Replace DOSFS_GetFullName with wine_get_unix_file_name.

This commit is contained in:
Andreas Mohr 2002-05-07 01:53:51 +00:00 committed by Alexandre Julliard
parent f0b6b9a1ba
commit 3fc3d06a66

View file

@ -530,7 +530,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
} }
else else
{ {
DOS_FULL_NAME fullName; char buffer[MAX_PATH];
TRACE("Just assume it's a file\n"); 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 * The file name can be dos based, we have to find its
* Unix correspondant file name * 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", ERR("Failed to create spool file '%s' ('%s'). (error %s)\n",
fullName.long_name, strerror(errno)); buffer, psCmdP, strerror(errno));
} }
} }
return fd; return fd;
@ -584,7 +584,7 @@ HPJOB16 WINAPI OpenJob16(LPCSTR lpOutput, LPCSTR lpTitle, HDC16 hDC)
{ {
int fd; int fd;
/* Try an create a spool file */ /* Try and create a spool file */
fd = CreateSpoolFile(lpOutput); fd = CreateSpoolFile(lpOutput);
if (fd >= 0) if (fd >= 0)
{ {