gdi32: Quote the printer name prior to passing it to the shell.

This commit is contained in:
Huw Davies 2007-08-22 14:39:46 +01:00 committed by Alexandre Julliard
parent 4f49655a65
commit a247ca5308
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
RegCloseKey(hkey);
}
if (!psCmd[0] && !strncmp("LPR:",pszOutput,4))
sprintf(psCmd,"|lpr -P%s",pszOutput+4);
sprintf(psCmd,"|lpr -P'%s'",pszOutput+4);
TRACE("Got printerSpoolCommand '%s' for output device '%s'\n",
psCmd, pszOutput);