Browse Source

quote pview filename

David Rose 22 years ago
parent
commit
7a96219696
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pandatool/src/mayaprogs/mayaSavePview.cxx

+ 2 - 1
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;
   }