quote pview filename

This commit is contained in:
David Rose 2003-11-05 04:53:19 +00:00
parent e08fae4ad8
commit 7a96219696

View File

@ -57,8 +57,9 @@ doIt(const MArgList &) {
#ifdef WIN32_VC #ifdef WIN32_VC
// On Windows, we use the spawn function to run pview // On Windows, we use the spawn function to run pview
// asynchronously. // asynchronously.
MString quoted = MString("\"") + filename + MString("\"");
int retval = _spawnlp(_P_DETACH, "pview", int retval = _spawnlp(_P_DETACH, "pview",
"pview", "-cl", filename.asChar(), NULL); "pview", "-cl", quoted.asChar(), NULL);
if (retval == -1) { if (retval == -1) {
return MS::kFailure; return MS::kFailure;
} }