mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
quote pview filename
This commit is contained in:
parent
e08fae4ad8
commit
7a96219696
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user