From 3fc3d06a6688c589786c5b65787ca08f05a75e3b Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Tue, 7 May 2002 01:53:51 +0000 Subject: [PATCH] Replace DOSFS_GetFullName with wine_get_unix_file_name. --- dlls/gdi/printdrv.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/gdi/printdrv.c b/dlls/gdi/printdrv.c index 69bb0190c0c..273f6148240 100644 --- a/dlls/gdi/printdrv.c +++ b/dlls/gdi/printdrv.c @@ -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) {