Index: fpdfsdk/src/javascript/JS_Runtime.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Runtime.cpp b/fpdfsdk/src/javascript/JS_Runtime.cpp |
index bbe9f6e8c82477efacfb4caab061b7f436e12a73..643cefb92fcd9fbac6501c3271623dd5c1ce9114 100644 |
--- a/fpdfsdk/src/javascript/JS_Runtime.cpp |
+++ b/fpdfsdk/src/javascript/JS_Runtime.cpp |
@@ -205,7 +205,7 @@ void CJS_Runtime::SetReaderDocument(CPDFSDK_Document* pReaderDoc) { |
if (FXJS_GetObjDefnID(pThis) == |
FXJS_GetObjDefnID(GetIsolate(), L"Document")) { |
if (CJS_Document* pJSDocument = |
- (CJS_Document*)FXJS_GetPrivate(pThis)) { |
+ (CJS_Document*)FXJS_GetPrivate(GetIsolate(), pThis)) { |
if (Document* pDocument = (Document*)pJSDocument->GetEmbedObject()) |
pDocument->AttachDoc(pReaderDoc); |
} |