--- XPDFCore.cc 2008/10/14 06:13:38 1.1 +++ XPDFCore.cc 2008/10/14 06:25:39 @@ -22,6 +22,7 @@ #include "GlobalParams.h" #include "PDFDoc.h" #include "Link.h" +#include "FileSpec.h" #include "ErrorCodes.h" #include "GfxState.h" #include "CoreOutputDev.h" @@ -465,7 +466,7 @@ void XPDFCore::doAction(LinkAction *acti GooString *fileName, *fileName2; GooString *cmd; GooString *actionName; - Object movieAnnot, obj1, obj2; + Object movieAnnot, obj1, obj2, obj3; GooString *msg; int i; @@ -631,7 +632,8 @@ void XPDFCore::doAction(LinkAction *acti if (movieAnnot.isDict()) { if (movieAnnot.dictLookup("Movie", &obj1)->isDict()) { if (obj1.dictLookup("F", &obj2)) { - if ((fileName = LinkAction::getFileSpecName(&obj2))) { + if (getFileSpecNameForPlatform(&obj2, &obj3)) { + fileName = obj3.getString()->copy(); if (!isAbsolutePath(fileName->getCString())) { fileName2 = appendToPath( grabPath(doc->getFileName()->getCString()), @@ -641,6 +643,7 @@ void XPDFCore::doAction(LinkAction *acti } runCommand(cmd, fileName); delete fileName; + obj3.free(); } obj2.free(); }