diff --git a/dlls/gdi32/printdrv.c b/dlls/gdi32/printdrv.c index 0cca2ad08ee..944453685ea 100644 --- a/dlls/gdi32/printdrv.c +++ b/dlls/gdi32/printdrv.c @@ -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);