Index: fpdfsdk/src/javascript/JS_Runtime.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Runtime.cpp b/fpdfsdk/src/javascript/JS_Runtime.cpp |
index 81f9462674084f8e60535329c75f94bc191f6179..edc8c253d967a9e9ebcc91edbddac749c741fa49 100644 |
--- a/fpdfsdk/src/javascript/JS_Runtime.cpp |
+++ b/fpdfsdk/src/javascript/JS_Runtime.cpp |
@@ -184,7 +184,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); |
} |