Index: fpdfsdk/javascript/util.cpp |
diff --git a/fpdfsdk/javascript/util.cpp b/fpdfsdk/javascript/util.cpp |
index adaa9c794b600108b03d7be6569febffca13d03c..4f2d834208f11d1a19003cc9ef83ca7a248b4110 100644 |
--- a/fpdfsdk/javascript/util.cpp |
+++ b/fpdfsdk/javascript/util.cpp |
@@ -312,7 +312,8 @@ FX_BOOL util::printx(IJS_Context* cc, |
sError = JSGetStringFromID((CJS_Context*)cc, IDS_STRING_JSPARAMERROR); |
return FALSE; |
} |
- vRet = printx(params[0].ToCFXWideString(), params[1].ToCFXWideString()); |
+ vRet = |
+ printx(params[0].ToCFXWideString(), params[1].ToCFXWideString()).c_str(); |
return TRUE; |
} |