From 7a9621969628b32b9c9fa3a7267d8e4758312d19 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 5 Nov 2003 04:53:19 +0000 Subject: [PATCH] quote pview filename --- pandatool/src/mayaprogs/mayaSavePview.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandatool/src/mayaprogs/mayaSavePview.cxx b/pandatool/src/mayaprogs/mayaSavePview.cxx index e05b895098..e37e0b588e 100644 --- a/pandatool/src/mayaprogs/mayaSavePview.cxx +++ b/pandatool/src/mayaprogs/mayaSavePview.cxx @@ -57,8 +57,9 @@ doIt(const MArgList &) { #ifdef WIN32_VC // On Windows, we use the spawn function to run pview // asynchronously. + MString quoted = MString("\"") + filename + MString("\""); int retval = _spawnlp(_P_DETACH, "pview", - "pview", "-cl", filename.asChar(), NULL); + "pview", "-cl", quoted.asChar(), NULL); if (retval == -1) { return MS::kFailure; }