Commit a247ca53 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent 4f49655a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment