Index: xfa/fxfa/app/xfa_ffdoc.cpp |
diff --git a/xfa/fxfa/app/xfa_ffdoc.cpp b/xfa/fxfa/app/xfa_ffdoc.cpp |
index 1b5665bb082173d21f4e212f37b5613980f5810f..cf5b28961360ed388fa337131bb77588ae05049f 100644 |
--- a/xfa/fxfa/app/xfa_ffdoc.cpp |
+++ b/xfa/fxfa/app/xfa_ffdoc.cpp |
@@ -417,8 +417,8 @@ CFX_DIBitmap* CXFA_FFDoc::GetPDFNamedImage(const CFX_WideStringC& wsName, |
CPDF_StreamAcc streamAcc; |
streamAcc.LoadAllData(pStream); |
- IFX_SeekableReadStream* pImageFileRead = |
- FX_CreateMemoryStream((uint8_t*)streamAcc.GetData(), streamAcc.GetSize()); |
+ IFX_SeekableReadStream* pImageFileRead = IFX_MemoryStream::Create( |
+ (uint8_t*)streamAcc.GetData(), streamAcc.GetSize()); |
CFX_DIBitmap* pDibSource = XFA_LoadImageFromBuffer( |
pImageFileRead, FXCODEC_IMAGE_UNKNOWN, iImageXDpi, iImageYDpi); |